added zoxide, allowed proper backspacing in zsh
This commit is contained in:
parent
090ba124d0
commit
acb21f084f
|
@ -14,7 +14,7 @@ you dont need a patched Nerd Font, normal `ttf-fira-code` combined with `ttf-ner
|
|||
|
||||
### Yazi
|
||||
Will need https://github.com/jstkdng/ueberzugpp installed if using on alacritty, availible in AUR (only needed for image previews).
|
||||
also has optional dependencies on jq, unarchiver, ffmpegthumbnailer, fd, ripgrep, fzf, and poppler
|
||||
also has optional dependencies on jq, unarchiver, ffmpegthumbnailer, fd, ripgrep, fzf, zoxide, and poppler
|
||||
|
||||
### Latexmk
|
||||
Uses zathura as a pdf previewer.
|
||||
|
@ -88,6 +88,7 @@ For telescope:
|
|||
* nvim ($EDITOR and $VISUAL is set to this)
|
||||
* less
|
||||
* fzf
|
||||
* optional: zoxide
|
||||
|
||||
Software used by aliases:
|
||||
* nvim
|
||||
|
|
|
@ -174,6 +174,7 @@ keymap = [
|
|||
{ on = [ "<C-q>" ], exec = "close", desc = "Cancel input" },
|
||||
{ on = [ "<Enter>" ], exec = "close --submit", desc = "Submit the input" },
|
||||
{ on = [ "<Esc>" ], exec = "escape", desc = "Go back the normal mode, or cancel input" },
|
||||
{ on = [ "<Backspace>" ], exec = "backspace" },
|
||||
|
||||
# Mode
|
||||
{ on = [ "i" ], exec = "insert", desc = "Enter insert mode" },
|
||||
|
|
10
zsh/.zshrc
10
zsh/.zshrc
|
@ -81,6 +81,9 @@
|
|||
setopt ZLE
|
||||
#Enable vi mode for the ZLE. it should be set by default due to our EDITOR and VISUAL, but this is just to be safe.
|
||||
bindkey -v
|
||||
#allow backspacing beyond the point you entered insert mode:
|
||||
bindkey -v '^?' backward-delete-char
|
||||
bindkey "^W" backward-kill-word
|
||||
# Sends cd commands without the need for 'cd'
|
||||
setopt AUTO_CD
|
||||
# Kill all child processes when we exit, dont leave them running
|
||||
|
@ -185,12 +188,15 @@
|
|||
#starship
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
#zoxide stuff
|
||||
command -v zoxide && eval "$(zoxide init zsh)"
|
||||
|
||||
#check for existence of pyenv before setting it up.
|
||||
if (($+commands[pyenv])); then
|
||||
if command -v pyenv &> /dev/null; then
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
||||
fi
|
||||
|
||||
#fancy way of testing if a command exists
|
||||
ruby --version &>/dev/null && export PATH="$PATH:$(ruby -e 'puts Gem.user_dir' 2> /dev/null)/bin/"
|
||||
command -v ruby &>/dev/null && export PATH="$PATH:$(ruby -e 'puts Gem.user_dir' 2> /dev/null)/bin/"
|
||||
|
|
Loading…
Reference in a new issue