zsh: add cmake aliases and set default editor
This commit is contained in:
parent
68f055d40d
commit
38d3d9db7e
7
.zshrc
7
.zshrc
@ -26,6 +26,8 @@ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
|||||||
# Alias
|
# Alias
|
||||||
alias vi="nvim"
|
alias vi="nvim"
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
|
alias cmakeg="cmake -B build -S ."
|
||||||
|
alias cmakeb="cmake --build build -j $(nproc)"
|
||||||
|
|
||||||
# Plugins from AUR
|
# Plugins from AUR
|
||||||
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
@ -82,3 +84,8 @@ bindkey '^[[B' history-substring-search-down
|
|||||||
bindkey '^K' history-substring-search-up
|
bindkey '^K' history-substring-search-up
|
||||||
bindkey '^J' history-substring-search-down
|
bindkey '^J' history-substring-search-down
|
||||||
|
|
||||||
|
# Set default editor
|
||||||
|
export EDITOR="nvim"
|
||||||
|
|
||||||
|
# Global CMake clangd fix
|
||||||
|
export CMAKE_EXPORT_COMPILE_COMMANDS=1
|
||||||
|
Loading…
Reference in New Issue
Block a user