dotfiles

Linux and macOS dotfiles
git clone https://github.com/michaelneuper/dotfiles.git
README | Files | Log | Refs

commit a19ba92081e5ef35d4493dc3e92c11dab2b3f85b
parent 9eca7fa7d3c2b4382ec968396265e039133bee48
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Sun, 25 Oct 2026 11:59:43 +0200

update zshrc

Diffstat:
M.zshrc | 42+++++++++++++++++++++++++++++-------------
1 file changed, 29 insertions(+), 13 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -9,7 +9,7 @@ zstyle ":omz:update" frequency 15 COMPLETION_WAITING_DOTS="true" -plugins=(starship zoxide git vi-mode colored-man-pages macos zsh-syntax-highlighting zsh-autosuggestions fzf) +plugins=(starship git vi-mode colored-man-pages macos zsh-syntax-highlighting zsh-autosuggestions fzf zoxide) source $ZSH/oh-my-zsh.sh @@ -17,10 +17,12 @@ source $ZSH/oh-my-zsh.sh VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true VI_MODE_SET_CURSOR=true -bindkey "^J" down-line-or-search # or down-line-or-history -bindkey "^K" up-line-or-search # or up-line-or-history -bindkey "^B" backward-char -bindkey "^F" forward-char +if [[ -z "$VTERM" ]]; then + bindkey "^J" down-line-or-search # or down-line-or-history + bindkey "^K" up-line-or-search # or up-line-or-history + bindkey "^B" backward-char + bindkey "^F" forward-char +fi HISTFILE=~/.zhistory HISTSIZE=50000 @@ -30,8 +32,12 @@ SAVEHIST=10000 export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.config/emacs/bin:$PATH" export PATH="/opt/homebrew/opt/openjdk/bin:$PATH" +export CPATH="/opt/homebrew/include" +export LIBRARY_PATH="/opt/homebrew/lib" export LIBGS="/opt/homebrew/lib/libgs.dylib" # fix LaTeX rendering in emacs +export _ZO_DOCTOR=0 # disable zoxide config issure warning +export EZA_ICON_SPACING=2 export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS" --height 60% @@ -53,19 +59,19 @@ export FZF_CTRL_T_OPTS=" # Aliases if command -v bat >/dev/null 2>&1; then - alias cat="bat --plain --theme=gruvbox-dark" + alias cat="bat --plain --theme=gruvbox-dark" fi if command -v zoxide >/dev/null 2>&1; then - alias cd="z" + alias cd="z" fi if command -v eza >/dev/null 2>&1; then - alias ls="eza -F --icons=auto --no-quotes" - alias ll="eza -F --long --no-user --icons=auto --no-quotes" + alias ls="eza -F --icons=auto --no-quotes" + alias ll="eza -F --long --no-user --icons=auto --no-quotes" else - alias ls="ls -GF" - alias ll="ls -GFl" + alias ls="ls -GF" + alias ll="ls -GFl" fi alias home="cd ~/" @@ -75,9 +81,9 @@ alias v="nvim" alias vim="emacs -nw" if command -v git-st >/dev/null 2>&1; then - alias gs="git-st" + alias gs="git-st" else - alias gs="git status --short --branch" + alias gs="git status --short --branch" fi alias cs="gh copilot suggest" @@ -98,3 +104,13 @@ alias bs="brew search" alias bi="brew install" alias bic="brew install --cask" alias bu="brew update && brew upgrade" + +alias bclang="$(brew --prefix llvm)/bin/clang" + +# for compilers to find llvm +export LDFLAGS="-L/opt/homebrew/opt/llvm/lib" +export CPPFLAGS="-I/opt/homebrew/opt/llvm/include" + +# openmp +export LDFLAGS="-L/opt/homebrew/opt/libomp/lib" +export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"