dotfiles
1

Configure Feed

Select the types of activity you want to include in your feed.

Add zshrc

Juan Nunez-Iglesias (Jul 3, 2026, 5:00 PM +0200) b16c1d94 fb160905

+164
+164
zshrc/zshrc
··· 1 + # If you come from bash you might have to change your $PATH. 2 + # export PATH=$HOME/bin:/usr/local/bin:$PATH 3 + 4 + # Path to your oh-my-zsh installation. 5 + export ZSH="$HOME/.oh-my-zsh" 6 + 7 + # Set name of the theme to load --- if set to "random", it will 8 + # load a random theme each time oh-my-zsh is loaded, in which case, 9 + # to know which specific one was loaded, run: echo $RANDOM_THEME 10 + # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes 11 + ZSH_THEME="amuse" 12 + 13 + # Set list of themes to pick from when loading at random 14 + # Setting this variable when ZSH_THEME=random will cause zsh to load 15 + # a theme from this variable instead of looking in $ZSH/themes/ 16 + # If set to an empty array, this variable will have no effect. 17 + # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) 18 + 19 + # Uncomment the following line to use case-sensitive completion. 20 + # CASE_SENSITIVE="true" 21 + 22 + # Uncomment the following line to use hyphen-insensitive completion. 23 + # Case-sensitive completion must be off. _ and - will be interchangeable. 24 + # HYPHEN_INSENSITIVE="true" 25 + 26 + # Uncomment one of the following lines to change the auto-update behavior 27 + # zstyle ':omz:update' mode disabled # disable automatic updates 28 + # zstyle ':omz:update' mode auto # update automatically without asking 29 + # zstyle ':omz:update' mode reminder # just remind me to update when it's time 30 + 31 + # Uncomment the following line to change how often to auto-update (in days). 32 + # zstyle ':omz:update' frequency 13 33 + 34 + # Uncomment the following line if pasting URLs and other text is messed up. 35 + # DISABLE_MAGIC_FUNCTIONS="true" 36 + 37 + # Uncomment the following line to disable colors in ls. 38 + # DISABLE_LS_COLORS="true" 39 + 40 + # Uncomment the following line to disable auto-setting terminal title. 41 + # DISABLE_AUTO_TITLE="true" 42 + 43 + # Uncomment the following line to enable command auto-correction. 44 + # ENABLE_CORRECTION="true" 45 + 46 + # Uncomment the following line to display red dots whilst waiting for completion. 47 + # You can also set it to another string to have that shown instead of the default red dots. 48 + # e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" 49 + # Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) 50 + # COMPLETION_WAITING_DOTS="true" 51 + 52 + # Uncomment the following line if you want to disable marking untracked files 53 + # under VCS as dirty. This makes repository status check for large repositories 54 + # much, much faster. 55 + # DISABLE_UNTRACKED_FILES_DIRTY="true" 56 + 57 + # Uncomment the following line if you want to change the command execution time 58 + # stamp shown in the history command output. 59 + # You can set one of the optional three formats: 60 + # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 61 + # or set a custom format using the strftime function format specifications, 62 + # see 'man strftime' for details. 63 + # HIST_STAMPS="mm/dd/yyyy" 64 + 65 + # Would you like to use another custom folder than $ZSH/custom? 66 + # ZSH_CUSTOM=/path/to/new-custom-folder 67 + 68 + # Which plugins would you like to load? 69 + # Standard plugins can be found in $ZSH/plugins/ 70 + # Custom plugins may be added to $ZSH_CUSTOM/plugins/ 71 + # Example format: plugins=(rails git textmate ruby lighthouse) 72 + # Add wisely, as too many plugins slow down shell startup. 73 + plugins=(git conda-zsh-completion brew history-substring-search) 74 + 75 + source $ZSH/oh-my-zsh.sh 76 + 77 + unsetopt share_history 78 + 79 + # User configuration 80 + 81 + # export MANPATH="/usr/local/man:$MANPATH" 82 + 83 + # You may need to manually set your language environment 84 + # export LANG=en_US.UTF-8 85 + 86 + export EDITOR=vim 87 + # Preferred editor for local and remote sessions 88 + # if [[ -n $SSH_CONNECTION ]]; then 89 + # export EDITOR='vim' 90 + # else 91 + # export EDITOR='mvim' 92 + # fi 93 + 94 + # Compilation flags 95 + # export ARCHFLAGS="-arch x86_64" 96 + 97 + # Set personal aliases, overriding those provided by oh-my-zsh libs, 98 + # plugins, and themes. Aliases can be placed here, though oh-my-zsh 99 + # users are encouraged to define aliases within the ZSH_CUSTOM folder. 100 + # For a full list of active aliases, run `alias`. 101 + # 102 + # Example aliases 103 + # alias zshconfig="mate ~/.zshrc" 104 + # alias ohmyzsh="mate ~/.oh-my-zsh" 105 + alias charm="open -a /Applications/PyCharm.app ." 106 + alias tower="open -a /Applications/Tower.app ." 107 + alias branch="git branch -a --sort=committerdate --format='%(HEAD)%(color:yellow)%(refname:short)@SEP@%(color:bold green)%(committerdate:relative)@SEP@%(color:magenta)%(authorname)%(color:reset)@SEP@%(color:blue)%(subject)' --color=always | awk -F '@SEP@' '{printf("%-100s %-30s %-20s %s \n", $1, $2, $3, $4)}'" 108 + 109 + # custom functions 110 + by() { 111 + python -c "`pbpaste`" 112 + } 113 + 114 + # >>> mamba initialize >>> 115 + # !! Contents within this block are managed by 'mamba init' !! 116 + export MAMBA_EXE='/opt/homebrew/opt/micromamba/bin/micromamba'; 117 + export MAMBA_ROOT_PREFIX='/Users/jni/micromamba'; 118 + __mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)" 119 + if [ $? -eq 0 ]; then 120 + eval "$__mamba_setup" 121 + else 122 + alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate 123 + fi 124 + unset __mamba_setup 125 + # <<< mamba initialize <<< 126 + 127 + alias µ=micromamba 128 + alias mu=micromamba 129 + µ activate all 130 + 131 + # rebuilding main env 132 + nuke() { 133 + mu deactivate 134 + mu env remove --name all -y 135 + mu env create -y -f ~/projects/config/all.yml 136 + mu activate all 137 + uv pip uninstall -y napari 138 + uv pip install -U -e "${HOME}/projects/napari[dev,testing]" 139 + uv pip install -U -e "${HOME}/projects/skan" 140 + uv pip install -U -e "${HOME}/projects/affinder" 141 + uv pip install -U -e "${HOME}/projects/zarpaint" 142 + } 143 + 144 + # rebuilding main env 145 + test-napari() { 146 + mu deactivate 147 + mu env remove --name napari-pre-release -y 148 + mu env create -y -n napari-pre-release python=3.12 pip uv 149 + mu activate napari-pre-release 150 + #uv pip install --prerelease=allow "napari[all]" 151 + pip install --pre "napari[all]" 152 + napari 153 + } 154 + 155 + pwhich() { 156 + python -c "import $1; print($1)" 157 + } 158 + 159 + # bun completions 160 + [ -s "/Users/jni/.bun/_bun" ] && source "/Users/jni/.bun/_bun" 161 + 162 + # bun 163 + export BUN_INSTALL="$HOME/.bun" 164 + export PATH="$BUN_INSTALL/bin:$PATH"