zsh: alias and cmake configuration changes
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
alias ll="ls -alG"
|
alias ll="ls -alG"
|
||||||
|
|
||||||
|
alias vim=nvim
|
||||||
|
alias nj=ninja
|
||||||
|
|
||||||
alias ...="cd ../.."
|
alias ...="cd ../.."
|
||||||
alias ....="cd ../../.."
|
alias ....="cd ../../.."
|
||||||
alias .....="cd ../../../.."
|
alias .....="cd ../../../.."
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
export CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
|
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
|
||||||
|
export CMAKE_GENERATOR=Ninja
|
||||||
|
|||||||
@@ -42,3 +42,9 @@ source $zsh_dir/prompt.zsh
|
|||||||
# COMMAND initialisation
|
# COMMAND initialisation
|
||||||
|
|
||||||
source $zsh_dir/commands.zsh
|
source $zsh_dir/commands.zsh
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# KEYBIND initialisation
|
||||||
|
|
||||||
|
source $zsh_dir/keybind.zsh
|
||||||
|
|||||||
6
zsh/keybind.zsh
Normal file
6
zsh/keybind.zsh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
bindkey '^k' up-history
|
||||||
|
bindkey '^j' down-history
|
||||||
|
|
||||||
|
bindkey '^l' forward-word
|
||||||
|
bindkey '^h' backward-word
|
||||||
@@ -2,4 +2,4 @@ parse_git_branch() {
|
|||||||
git symbolic-ref --short HEAD 2> /dev/null | sed -E 's/(.+)/ [\1]/g'
|
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} '
|
||||||
|
|||||||
Reference in New Issue
Block a user