zsh mappings
This commit is contained in:
parent
cd8da20d95
commit
436a86a1a4
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,7 +6,7 @@ home/user/.config/nvim/spell
|
||||
home/user/.config/bash/bashrc.d/*
|
||||
!home/user/.config/bash/bashrc.d/.gitkeep
|
||||
home/user/.config/zsh/zshrc.d/*
|
||||
!home/user/.config/zsh/zshrc.d/.gitkeep
|
||||
!home/user/.config/zsh/zshrc.d/00_zhashd.sh
|
||||
home/user/.config/zsh/.zcalc_history
|
||||
|
||||
*.zwc
|
||||
|
||||
@ -40,6 +40,9 @@ alias wp='cd $WORKING_PROJECT'
|
||||
|
||||
alias path='echo -e ${PATH//:/\\n}'
|
||||
|
||||
alias dh='dirs -v'
|
||||
alias pd='popd'
|
||||
|
||||
# shorts
|
||||
alias c='clear'
|
||||
alias h='history 0'
|
||||
|
||||
@ -274,4 +274,8 @@ bak() {
|
||||
_bak "${filename}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
f() {
|
||||
find . -name "*${1}*"
|
||||
}
|
||||
@ -43,7 +43,12 @@ bind-key Y {
|
||||
}
|
||||
|
||||
bind t display-popup -E -h 70% -w 60%
|
||||
bind c clock-mode
|
||||
|
||||
|
||||
|
||||
bind c display-menu \
|
||||
calendar c "display-popup -w 33% -h 70% 'cal -y'" \
|
||||
time t "clock-mode"
|
||||
|
||||
|
||||
# Switch new session
|
||||
|
||||
@ -47,4 +47,20 @@ bindkey -M viins '^S' insert-sudo # C-s
|
||||
|
||||
bindkey '`' autosuggest-accept
|
||||
bindkey '^?' backward-delete-char
|
||||
bindkey '^W' backward-delete-word
|
||||
bindkey '^W' backward-delete-word
|
||||
|
||||
|
||||
popdquiet() {
|
||||
popd &>/dev/null
|
||||
zle reset-prompt
|
||||
}
|
||||
zle -N popdquiet
|
||||
bindkey "^P" popdquiet
|
||||
|
||||
|
||||
cddotdot() {
|
||||
cd ..
|
||||
zle reset-prompt
|
||||
}
|
||||
zle -N cddotdot
|
||||
bindkey "^O" cddotdot
|
||||
@ -7,6 +7,10 @@ setopt numericglobsort # sort filenames numerically when it makes sense
|
||||
setopt promptsubst # enable command substitution in prompt
|
||||
setopt noflowcontrol # disable C-s mapping
|
||||
|
||||
|
||||
DIRSTACKSIZE=8
|
||||
setopt autopushd
|
||||
|
||||
WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word
|
||||
|
||||
# hide EOL sign ('%')
|
||||
|
||||
3
home/user/.config/zsh/zshrc.d/00_zhashd.sh
Normal file
3
home/user/.config/zsh/zshrc.d/00_zhashd.sh
Normal file
@ -0,0 +1,3 @@
|
||||
# Example:
|
||||
# hash -d pa=~/code/ProcessAgent2
|
||||
# cd ~pa
|
||||
Loading…
x
Reference in New Issue
Block a user