From c863538da9566dde623e18c6d0322d0d3a7434cc Mon Sep 17 00:00:00 2001 From: Nicola Belluti Date: Wed, 14 Aug 2024 09:36:57 +0200 Subject: [PATCH] Fixed some keys and the PS1 prompt --- private_dot_config/zsh/dot_zshrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/private_dot_config/zsh/dot_zshrc b/private_dot_config/zsh/dot_zshrc index 69ba89b..b33fdbd 100644 --- a/private_dot_config/zsh/dot_zshrc +++ b/private_dot_config/zsh/dot_zshrc @@ -2,10 +2,19 @@ source "$ZDOTDIR/history.zsh" source "$ZDOTDIR/alias.zsh" source "$ZDOTDIR/plugins.zsh" +# Set the initial prompt +PS1="%F{38}[%n@%m %F{45}%B%~%b%f%F{38}]%f$ " + # Bind Ctrl-left/right arrow to move back/formward one word # https://unix.stackexchange.com/a/140499 +# +# Bind Canc, Home and End to the right functions +# https://stackoverflow.com/a/8645267 bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[3~" delete-char # Enable the autocompletion and make it case insensitive # https://superuser.com/a/1092328 @@ -16,3 +25,6 @@ zstyle ":completion:*" matcher-list "m:{a-z}={A-Za-z}" # https://unix.stackexchange.com/a/447002 eval "$(dircolors)" zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} + +eval "$(fzf --zsh)" +eval "$(zoxide init --cmd cd zsh)"