···11+# If you come from bash you might have to change your $PATH.
22+# export PATH=$HOME/bin:/usr/local/bin:$PATH
33+44+# Path to your oh-my-zsh installation.
55+export ZSH="$HOME/.oh-my-zsh"
66+77+# Set name of the theme to load --- if set to "random", it will
88+# load a random theme each time oh-my-zsh is loaded, in which case,
99+# to know which specific one was loaded, run: echo $RANDOM_THEME
1010+# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
1111+ZSH_THEME="amuse"
1212+1313+# Set list of themes to pick from when loading at random
1414+# Setting this variable when ZSH_THEME=random will cause zsh to load
1515+# a theme from this variable instead of looking in $ZSH/themes/
1616+# If set to an empty array, this variable will have no effect.
1717+# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
1818+1919+# Uncomment the following line to use case-sensitive completion.
2020+# CASE_SENSITIVE="true"
2121+2222+# Uncomment the following line to use hyphen-insensitive completion.
2323+# Case-sensitive completion must be off. _ and - will be interchangeable.
2424+# HYPHEN_INSENSITIVE="true"
2525+2626+# Uncomment one of the following lines to change the auto-update behavior
2727+# zstyle ':omz:update' mode disabled # disable automatic updates
2828+# zstyle ':omz:update' mode auto # update automatically without asking
2929+# zstyle ':omz:update' mode reminder # just remind me to update when it's time
3030+3131+# Uncomment the following line to change how often to auto-update (in days).
3232+# zstyle ':omz:update' frequency 13
3333+3434+# Uncomment the following line if pasting URLs and other text is messed up.
3535+# DISABLE_MAGIC_FUNCTIONS="true"
3636+3737+# Uncomment the following line to disable colors in ls.
3838+# DISABLE_LS_COLORS="true"
3939+4040+# Uncomment the following line to disable auto-setting terminal title.
4141+# DISABLE_AUTO_TITLE="true"
4242+4343+# Uncomment the following line to enable command auto-correction.
4444+# ENABLE_CORRECTION="true"
4545+4646+# Uncomment the following line to display red dots whilst waiting for completion.
4747+# You can also set it to another string to have that shown instead of the default red dots.
4848+# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
4949+# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
5050+# COMPLETION_WAITING_DOTS="true"
5151+5252+# Uncomment the following line if you want to disable marking untracked files
5353+# under VCS as dirty. This makes repository status check for large repositories
5454+# much, much faster.
5555+# DISABLE_UNTRACKED_FILES_DIRTY="true"
5656+5757+# Uncomment the following line if you want to change the command execution time
5858+# stamp shown in the history command output.
5959+# You can set one of the optional three formats:
6060+# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
6161+# or set a custom format using the strftime function format specifications,
6262+# see 'man strftime' for details.
6363+# HIST_STAMPS="mm/dd/yyyy"
6464+6565+# Would you like to use another custom folder than $ZSH/custom?
6666+# ZSH_CUSTOM=/path/to/new-custom-folder
6767+6868+# Which plugins would you like to load?
6969+# Standard plugins can be found in $ZSH/plugins/
7070+# Custom plugins may be added to $ZSH_CUSTOM/plugins/
7171+# Example format: plugins=(rails git textmate ruby lighthouse)
7272+# Add wisely, as too many plugins slow down shell startup.
7373+plugins=(git conda-zsh-completion brew history-substring-search)
7474+7575+source $ZSH/oh-my-zsh.sh
7676+7777+unsetopt share_history
7878+7979+# User configuration
8080+8181+# export MANPATH="/usr/local/man:$MANPATH"
8282+8383+# You may need to manually set your language environment
8484+# export LANG=en_US.UTF-8
8585+8686+export EDITOR=vim
8787+# Preferred editor for local and remote sessions
8888+# if [[ -n $SSH_CONNECTION ]]; then
8989+# export EDITOR='vim'
9090+# else
9191+# export EDITOR='mvim'
9292+# fi
9393+9494+# Compilation flags
9595+# export ARCHFLAGS="-arch x86_64"
9696+9797+# Set personal aliases, overriding those provided by oh-my-zsh libs,
9898+# plugins, and themes. Aliases can be placed here, though oh-my-zsh
9999+# users are encouraged to define aliases within the ZSH_CUSTOM folder.
100100+# For a full list of active aliases, run `alias`.
101101+#
102102+# Example aliases
103103+# alias zshconfig="mate ~/.zshrc"
104104+# alias ohmyzsh="mate ~/.oh-my-zsh"
105105+alias charm="open -a /Applications/PyCharm.app ."
106106+alias tower="open -a /Applications/Tower.app ."
107107+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)}'"
108108+109109+# custom functions
110110+by() {
111111+ python -c "`pbpaste`"
112112+}
113113+114114+# >>> mamba initialize >>>
115115+# !! Contents within this block are managed by 'mamba init' !!
116116+export MAMBA_EXE='/opt/homebrew/opt/micromamba/bin/micromamba';
117117+export MAMBA_ROOT_PREFIX='/Users/jni/micromamba';
118118+__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
119119+if [ $? -eq 0 ]; then
120120+ eval "$__mamba_setup"
121121+else
122122+ alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate
123123+fi
124124+unset __mamba_setup
125125+# <<< mamba initialize <<<
126126+127127+alias µ=micromamba
128128+alias mu=micromamba
129129+µ activate all
130130+131131+# rebuilding main env
132132+nuke() {
133133+ mu deactivate
134134+ mu env remove --name all -y
135135+ mu env create -y -f ~/projects/config/all.yml
136136+ mu activate all
137137+ uv pip uninstall -y napari
138138+ uv pip install -U -e "${HOME}/projects/napari[dev,testing]"
139139+ uv pip install -U -e "${HOME}/projects/skan"
140140+ uv pip install -U -e "${HOME}/projects/affinder"
141141+ uv pip install -U -e "${HOME}/projects/zarpaint"
142142+}
143143+144144+# rebuilding main env
145145+test-napari() {
146146+ mu deactivate
147147+ mu env remove --name napari-pre-release -y
148148+ mu env create -y -n napari-pre-release python=3.12 pip uv
149149+ mu activate napari-pre-release
150150+ #uv pip install --prerelease=allow "napari[all]"
151151+ pip install --pre "napari[all]"
152152+ napari
153153+}
154154+155155+pwhich() {
156156+ python -c "import $1; print($1)"
157157+}
158158+159159+# bun completions
160160+[ -s "/Users/jni/.bun/_bun" ] && source "/Users/jni/.bun/_bun"
161161+162162+# bun
163163+export BUN_INSTALL="$HOME/.bun"
164164+export PATH="$BUN_INSTALL/bin:$PATH"