From 0c7c1908d57f04f5637c7e2f0d309f07b679fd23 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 21 Feb 2026 18:19:50 +0000 Subject: [PATCH] zsh: alias and cmake configuration changes --- zsh/alias.zsh | 3 +++ zsh/environment.zsh | 1 + zsh/init.zsh | 6 ++++++ zsh/keybind.zsh | 6 ++++++ zsh/prompt.zsh | 2 +- 5 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 zsh/keybind.zsh diff --git a/zsh/alias.zsh b/zsh/alias.zsh index 6ce0374..4fb8da6 100644 --- a/zsh/alias.zsh +++ b/zsh/alias.zsh @@ -1,5 +1,8 @@ alias ll="ls -alG" +alias vim=nvim +alias nj=ninja + alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." diff --git a/zsh/environment.zsh b/zsh/environment.zsh index 86fb05d..349d758 100644 --- a/zsh/environment.zsh +++ b/zsh/environment.zsh @@ -1,2 +1,3 @@ export CLICOLOR=1 export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd +export CMAKE_GENERATOR=Ninja diff --git a/zsh/init.zsh b/zsh/init.zsh index 9018835..95b03b1 100644 --- a/zsh/init.zsh +++ b/zsh/init.zsh @@ -42,3 +42,9 @@ source $zsh_dir/prompt.zsh # COMMAND initialisation source $zsh_dir/commands.zsh + + +################################################################################ +# KEYBIND initialisation + +source $zsh_dir/keybind.zsh diff --git a/zsh/keybind.zsh b/zsh/keybind.zsh new file mode 100644 index 0000000..444e7f9 --- /dev/null +++ b/zsh/keybind.zsh @@ -0,0 +1,6 @@ + +bindkey '^k' up-history +bindkey '^j' down-history + +bindkey '^l' forward-word +bindkey '^h' backward-word diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index 5272fb5..91492c0 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -2,4 +2,4 @@ parse_git_branch() { git symbolic-ref --short HEAD 2> /dev/null | sed -E 's/(.+)/ [\1]/g' } -PROMPT='%F{yellow}%m%F{none}:%F{blue}%2d%F{none}%F{red}$(parse_git_branch) %F{%(?.green.red)}%#%F{none} ' +PROMPT='%B%F{magenta}%m%F{none}%b:%B%F{cyan}%2~%F{none}%b%F{yellow}$(parse_git_branch) %F{%(?.green.red)}%#%F{none} '