some todo notes, take @chris2's titlebar improvements and poke at completions
This commit is contained in:
parent
65bbe3fa6a
commit
82e2883a41
@ -59,3 +59,7 @@ h3. Send us your theme!
|
|||||||
|
|
||||||
I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.
|
I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.
|
||||||
|
|
||||||
|
h3. Todo from imajes:
|
||||||
|
|
||||||
|
* need to make the title bar support git folder
|
||||||
|
*
|
@ -1,6 +1,8 @@
|
|||||||
|
## fixme - the load process here seems a bit bizarre
|
||||||
|
|
||||||
setopt noautomenu
|
setopt noautomenu
|
||||||
setopt COMPLETE_IN_WORD
|
setopt complete_in_word
|
||||||
setopt ALWAYS_TO_END
|
setopt always_to_end
|
||||||
|
|
||||||
unsetopt flowcontrol
|
unsetopt flowcontrol
|
||||||
|
|
||||||
@ -17,9 +19,10 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:
|
|||||||
zstyle ':completion:*' list-colors ''
|
zstyle ':completion:*' list-colors ''
|
||||||
zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
|
zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
|
||||||
|
|
||||||
unsetopt MENU_COMPLETE
|
#unsetopt MENU_COMPLETE
|
||||||
setopt AUTO_MENU
|
#setopt AUTO_MENU
|
||||||
|
|
||||||
|
# should this be in keybindings?
|
||||||
bindkey -M menuselect '^o' accept-and-infer-next-history
|
bindkey -M menuselect '^o' accept-and-infer-next-history
|
||||||
|
|
||||||
zstyle ':completion:*:*:*:*:*' menu yes select
|
zstyle ':completion:*:*:*:*:*' menu yes select
|
||||||
|
@ -11,4 +11,24 @@ bindkey "^[[H" beginning-of-line
|
|||||||
bindkey "^[[1~" beginning-of-line
|
bindkey "^[[1~" beginning-of-line
|
||||||
bindkey "^[[F" end-of-line
|
bindkey "^[[F" end-of-line
|
||||||
bindkey "^[[4~" end-of-line
|
bindkey "^[[4~" end-of-line
|
||||||
bindkey ' ' magic-space # also do history expansion on space
|
bindkey ' ' magic-space # also do history expansion on space
|
||||||
|
|
||||||
|
|
||||||
|
# consider emacs keybindings:
|
||||||
|
|
||||||
|
#bindkey -e ## emacs key bindings
|
||||||
|
#
|
||||||
|
#bindkey '^[[A' up-line-or-search
|
||||||
|
#bindkey '^[[B' down-line-or-search
|
||||||
|
#bindkey '^[^[[C' emacs-forward-word
|
||||||
|
#bindkey '^[^[[D' emacs-backward-word
|
||||||
|
#
|
||||||
|
#bindkey -s '^X^Z' '%-^M'
|
||||||
|
#bindkey '^[e' expand-cmd-path
|
||||||
|
#bindkey '^[^I' reverse-menu-complete
|
||||||
|
#bindkey '^X^N' accept-and-infer-next-history
|
||||||
|
#bindkey '^W' kill-region
|
||||||
|
#bindkey '^I' complete-word
|
||||||
|
## Fix weird sequence that rxvt produces
|
||||||
|
#bindkey -s '^[[Z' '\t'
|
||||||
|
#
|
37
xterms.zsh
37
xterms.zsh
@ -1,16 +1,21 @@
|
|||||||
# Specific to xterms, such as OS X terminal
|
case "$TERM" in
|
||||||
|
xterm*|rxvt*)
|
||||||
if [[ "${TERM}" == xterm* ]]; then
|
preexec () {
|
||||||
unset TMOUT
|
print -Pn "\e]0;%n@%m: $1\a" # xterm
|
||||||
|
}
|
||||||
precmd () {
|
precmd () {
|
||||||
print -Pn "\033]0;%n@%m %~\007"
|
print -Pn "\e]0;%n@%m: %~\a" # xterm
|
||||||
#print -Pn "\033]0;%n@%m%# %~ %l %w :: %T\a" ## or use this
|
}
|
||||||
}
|
;;
|
||||||
|
screen*)
|
||||||
preexec () {
|
preexec () {
|
||||||
print -Pn "\033]0;%n@%m <$1> %~\007"
|
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]}
|
||||||
#print -Pn "\033]0;%n@%m%# <$1> %~ %l %w :: %T\a" ## or use this
|
echo -ne "\ek$CMD\e\\"
|
||||||
}
|
print -Pn "\e]0;%n@%m: $1\a" # xterm
|
||||||
|
}
|
||||||
fi
|
precmd () {
|
||||||
|
echo -ne "\ekzsh\e\\"
|
||||||
|
print -Pn "\e]0;%n@%m: %~\a" # xterm
|
||||||
|
}
|
||||||
|
;;
|
||||||
|
esac
|
Reference in New Issue
Block a user