diff options
Diffstat (limited to 'dotfiles/.config/zsh')
-rw-r--r-- | dotfiles/.config/zsh/.zshrc | 6 | ||||
-rw-r--r-- | dotfiles/.config/zsh/shortcuts | 11 |
2 files changed, 14 insertions, 3 deletions
diff --git a/dotfiles/.config/zsh/.zshrc b/dotfiles/.config/zsh/.zshrc index 727bfe0..ad70614 100644 --- a/dotfiles/.config/zsh/.zshrc +++ b/dotfiles/.config/zsh/.zshrc @@ -38,6 +38,12 @@ bindkey -M menuselect 'L' vi-forward-char bindkey -M menuselect 'J' vi-down-line-or-history bindkey -v '^?' backward-delete-char +# History search +bindkey "^[[A" history-beginning-search-backward +bindkey "^[[B" history-beginning-search-forward +bindkey -a "k" history-beginning-search-backward +bindkey -a "j" history-beginning-search-forward + # Change cursor shape for different vi modes. function zle-keymap-select { if [[ ${KEYMAP} == vicmd ]] || diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts index 9ec350c..199faee 100644 --- a/dotfiles/.config/zsh/shortcuts +++ b/dotfiles/.config/zsh/shortcuts @@ -29,9 +29,9 @@ alias spw="setsid $TERMINAL >/dev/null 2>&1 &" alias testinet="ping -c2 example.com" # Fuzzy finder -alias fzd='cd "$(find . -type d | fzf || echo ".")"' -alias fzv='nvim $(find . -type f | fzf)' -alias fzo='op $(find . -type f | fzf)' +alias fzd='cd "$(find . -type d -path "*/\.*" -prune -o -not -name ".*" -type d | fzf || echo ".")"' +alias fzv='nvim "$(find . -type d -path "*/\.*" -prune -o -not -name ".*" -type f | fzf)"' +alias fzo='op "$(find . -type d -path "*/\.*" -prune -o -not -name ".*" -type f | fzf)"' # Function for changing working dir after exiting lf lfcd () { @@ -68,6 +68,11 @@ alias yta="youtube-dl --add-metadata -xic" # Download only audio alias YT="youtube-viewer" alias starwars="telnet towel.blinkenlights.nl" +# git +gitcc () { + git clone "$(wl-paste --no-newline)" +} + # Audio and Music alias mute="lmc mute" alias vu="lmc up" |