added zoxide, allowed proper backspacing in zsh

This commit is contained in:
Gabe Venberg 2024-02-21 11:38:58 -06:00
parent 090ba124d0
commit acb21f084f
3 changed files with 11 additions and 3 deletions

View file

@ -14,7 +14,7 @@ you dont need a patched Nerd Font, normal `ttf-fira-code` combined with `ttf-ner
### Yazi ### Yazi
Will need https://github.com/jstkdng/ueberzugpp installed if using on alacritty, availible in AUR (only needed for image previews). 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 ### Latexmk
Uses zathura as a pdf previewer. Uses zathura as a pdf previewer.
@ -88,6 +88,7 @@ For telescope:
* nvim ($EDITOR and $VISUAL is set to this) * nvim ($EDITOR and $VISUAL is set to this)
* less * less
* fzf * fzf
* optional: zoxide
Software used by aliases: Software used by aliases:
* nvim * nvim

View file

@ -174,6 +174,7 @@ keymap = [
{ on = [ "<C-q>" ], exec = "close", desc = "Cancel input" }, { on = [ "<C-q>" ], exec = "close", desc = "Cancel input" },
{ on = [ "<Enter>" ], exec = "close --submit", desc = "Submit the input" }, { on = [ "<Enter>" ], exec = "close --submit", desc = "Submit the input" },
{ on = [ "<Esc>" ], exec = "escape", desc = "Go back the normal mode, or cancel input" }, { on = [ "<Esc>" ], exec = "escape", desc = "Go back the normal mode, or cancel input" },
{ on = [ "<Backspace>" ], exec = "backspace" },
# Mode # Mode
{ on = [ "i" ], exec = "insert", desc = "Enter insert mode" }, { on = [ "i" ], exec = "insert", desc = "Enter insert mode" },

View file

@ -81,6 +81,9 @@
setopt ZLE 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. #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 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' # Sends cd commands without the need for 'cd'
setopt AUTO_CD setopt AUTO_CD
# Kill all child processes when we exit, dont leave them running # Kill all child processes when we exit, dont leave them running
@ -185,12 +188,15 @@
#starship #starship
eval "$(starship init zsh)" eval "$(starship init zsh)"
#zoxide stuff
command -v zoxide && eval "$(zoxide init zsh)"
#check for existence of pyenv before setting it up. #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" export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)" eval "$(pyenv init -)"
fi fi
#fancy way of testing if a command exists #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/"