zsh: alias and cmake configuration changes

This commit is contained in:
2026-02-21 18:19:50 +00:00
parent ecefe3b413
commit 0c7c1908d5
5 changed files with 17 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
alias ll="ls -alG"
alias vim=nvim
alias nj=ninja
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."

View File

@@ -1,2 +1,3 @@
export CLICOLOR=1
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
export CMAKE_GENERATOR=Ninja

View File

@@ -42,3 +42,9 @@ source $zsh_dir/prompt.zsh
# COMMAND initialisation
source $zsh_dir/commands.zsh
################################################################################
# KEYBIND initialisation
source $zsh_dir/keybind.zsh

6
zsh/keybind.zsh Normal file
View File

@@ -0,0 +1,6 @@
bindkey '^k' up-history
bindkey '^j' down-history
bindkey '^l' forward-word
bindkey '^h' backward-word

View File

@@ -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} '