diff --git a/.gitignore b/.gitignore index 6a8bb76..c0702b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,2 @@ -__pycache__/ -__init__.py -/fonts/.uuid -plugin/ -files/lazygit/.config/lazygit/state.yml runtime/ +files/helix/.config/helix/runtime diff --git a/files/shell/.bashrc b/files/shell/.bashrc index e3dc963..03af40d 100644 --- a/files/shell/.bashrc +++ b/files/shell/.bashrc @@ -37,10 +37,9 @@ __prompt_command() { fi } -# ============================== vi-Mode -set -o vi - -bind -x '"\C-l": clear' +# ============================== Jump Words +bind '"\en": forward-word' +bind '"\ep": backward-word' # ============================== Source other definitions [ -f ~/.shellrc.alias ] && source ~/.shellrc.alias diff --git a/files/shell/.shellrc.alias b/files/shell/.shellrc.alias index 121a209..17d810b 100644 --- a/files/shell/.shellrc.alias +++ b/files/shell/.shellrc.alias @@ -48,6 +48,7 @@ alias mv='mv -i' alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE` alias rm='rm -i' alias t='tmux a || tmux -u' +alias tw='typst watch' # commands with pre-selected flags alias mktex="latexmk -xelatex -shell-escape" diff --git a/files/shell/.zshrc b/files/shell/.zshrc index 152e707..437cb18 100644 --- a/files/shell/.zshrc +++ b/files/shell/.zshrc @@ -46,30 +46,10 @@ setopt share_history # share command history data inside tmux export HISTFILE="$HOME/.zsh_history" export SAVEHIST=5000 -# ============================== vi-Mode -bindkey -v -export KEYTIMEOUT=1 - -# Updates editor information when the keymap changes. -function zle-keymap-select() { - zle reset-prompt - zle -R -} - -zle -N zle-keymap-select - -function vi_mode_prompt_info() { - MODE_INDICATOR="%{$fg[green]%}<<<%{$reset_color%}" - echo "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}" -} - -# Show mode indication on right side -RPS1='$(vi_mode_prompt_info)' -RPS2=$RPS1 - -# Enable backspace to delete in vi-mode -bindkey -v '^?' backward-delete-char - +# ============================== Jump Words +bindkey '^[n' forward-word +bindkey '^[p' backward-word + # ============================== Fancy Hacks # Always use C-z for bg and fg fancy-ctrl-z () {