From 38d3d9db7e9728e29d6d66380c2b9c7cf8db6c46 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Wed, 17 Apr 2024 04:20:08 -0500 Subject: [PATCH] zsh: add cmake aliases and set default editor --- .zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.zshrc b/.zshrc index bb8b00a..9090a02 100644 --- a/.zshrc +++ b/.zshrc @@ -26,6 +26,8 @@ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' # Alias alias vi="nvim" alias vim="nvim" +alias cmakeg="cmake -B build -S ." +alias cmakeb="cmake --build build -j $(nproc)" # Plugins from AUR 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 '^J' history-substring-search-down +# Set default editor +export EDITOR="nvim" + +# Global CMake clangd fix +export CMAKE_EXPORT_COMPILE_COMMANDS=1