mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 17:57:34 +08:00
further refactorings
This commit is contained in:
parent
1f05826afb
commit
93af38f154
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
||||||
|
locals.zsh
|
||||||
log/.zsh_history
|
log/.zsh_history
|
||||||
|
|
||||||
projects.zsh
|
projects.zsh
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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?
|
# should this be in keybindings?
|
||||||
|
@ -31,3 +31,10 @@ zstyle ':completion:*:*:*:*:*' menu yes select
|
||||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
||||||
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
|
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
|
||||||
zstyle ':completion:*:*:(ssh|scp):*:*' hosts `sed 's/^\([^ ,]*\).*$/\1/' ~/.ssh/known_hosts`
|
zstyle ':completion:*:*:(ssh|scp):*:*' hosts `sed 's/^\([^ ,]*\).*$/\1/' ~/.ssh/known_hosts`
|
||||||
|
|
||||||
|
|
||||||
|
#complete on history
|
||||||
|
# zstyle ':completion:*:history-words' stop yes
|
||||||
|
# zstyle ':completion:*:history-words' remove-all-dups yes
|
||||||
|
# zstyle ':completion:*:history-words' list false
|
||||||
|
# zstyle ':completion:*:history-words' menu yes
|
|
@ -1,5 +1,5 @@
|
||||||
# Changing/making/removing directory
|
# Changing/making/removing directory
|
||||||
|
setopt auto_name_dirs
|
||||||
|
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias cd..='cd ..'
|
alias cd..='cd ..'
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# TODO: Explain what some of this does..
|
# TODO: Explain what some of this does..
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
compinit
|
compinit
|
||||||
|
|
||||||
|
bindkey -e
|
||||||
bindkey '\ew' kill-region
|
bindkey '\ew' kill-region
|
||||||
bindkey -s '\el' "ls\n"
|
bindkey -s '\el' "ls\n"
|
||||||
bindkey -s '\e.' "..\n"
|
bindkey -s '\e.' "..\n"
|
||||||
|
|
17
prompt.zsh
17
prompt.zsh
|
@ -1,19 +1,12 @@
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
export LC_CTYPE=en_US.UTF-8
|
export LC_CTYPE=en_US.UTF-8
|
||||||
|
|
||||||
bindkey -e
|
# speed stuff.
|
||||||
|
|
||||||
# Directory stuff.
|
#setopt no_beep
|
||||||
setopt AUTO_NAME_DIRS
|
setopt auto_cd
|
||||||
|
setopt multios
|
||||||
# Speed stuff.
|
setopt cdablevarS
|
||||||
|
|
||||||
#setopt NO_BEEP
|
|
||||||
setopt AUTO_CD
|
|
||||||
setopt MULTIOS
|
|
||||||
setopt CDABLEVARS
|
|
||||||
|
|
||||||
bindkey -e
|
|
||||||
|
|
||||||
if [[ x$WINDOW != x ]]
|
if [[ x$WINDOW != x ]]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user