From 173d3c1673ea06968a0262e2572a4a085f46a306 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 16 Apr 2024 23:38:51 +0200 Subject: [PATCH] fix zsh keybindings and tilix terminal emulator --- .bashrc | 5 +++++ .zshrc | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/.bashrc b/.bashrc index 80383bb..f7993bd 100644 --- a/.bashrc +++ b/.bashrc @@ -132,6 +132,11 @@ export PATH=$PATH:/home/$USER/go/bin # Set up Node Version Manager #source /usr/share/nvm/init-nvm.sh +# fix tilix +if [ $TILIX_ID ] || [ $VTE_VERSION ]; then + source /etc/profile.d/vte.sh +fi + # setup oh-my-posh if [ -x /usr/bin/oh-my-posh ]; then eval "$(oh-my-posh init bash --config ~/.ohmyposh/myshell.minimal.omp.json)" diff --git a/.zshrc b/.zshrc index 23e628e..0a67722 100644 --- a/.zshrc +++ b/.zshrc @@ -13,6 +13,11 @@ autoload -Uz compinit compinit # End of lines added by compinstall +# fix key bindings for delete, pos1 and end +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[3~" delete-char + # some more ls aliases alias ll='ls -l' alias lla='ls -la' @@ -33,6 +38,11 @@ if [[ -f /usr/share/doc/find-the-command/ftc.zsh ]] ; then source /usr/share/doc/find-the-command/ftc.zsh fi +# tilix fix +if [ $TILIX_ID ] || [ $VTE_VERSION ]; then + source /etc/profile.d/vte.sh +fi + # setup oh-my-posh if [ -x /usr/bin/oh-my-posh ]; then eval "$(oh-my-posh init zsh --config ~/.ohmyposh/myshell.minimal.omp.json)"