############ ### P10K ### ############ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh ############# ### ZINIT ### ############# source ~/.zinit.zsh source ~/.zstyle.zsh ############# ### PATHS ### ############# # local bin export PATH=$HOME/.local/bin:$PATH # n export N_PREFIX=$HOME/.n export PATH=$N_PREFIX/bin:$PATH # ghcup-env [ -f "/home/iborrelli/.ghcup/env" ] && . "/home/iborrelli/.ghcup/env" ##################### ### ENV VARIABLES ### ##################### export SUDO_EDITOR="nvim" export EDITOR="nvim" export VISUAL="nvim" ############### ### HISTORY ### ############### HISTSIZE=10000 SAVEHIST=50000 HISTFILE=${XDG_STATE_HOME:-$HOME/.local/state}/.zsh_history HISTDUP=erase setopt appendhistory setopt sharehistory setopt hist_ignore_space setopt hist_ignore_all_dups setopt hist_save_no_dups setopt hist_ignore_all_dups setopt hist_find_no_dups ############### ### ALIASES ### ############### alias svim="sudo -E -s nvim" alias dots="/usr/bin/git --git-dir=$HOME/.git/ --work-tree=$HOME" alias vim="nvim" alias vi="nvim" alias python="python3" alias ls="ls --color" alias c="clear" alias bat=batcat alias cat=bat ################### ### KEYBINDINGS ### ################### bindkey -v # If wsl.conf exists we're probably in WSL and need some changes for terminal commands to work correctly [[ ! -f /etc/wsl.conf ]] || source ~/.wslrc.zsh [[ $(uname -a) =~ 'Ubuntu' ]] && source ~/.ubunturc.zsh [[ ! -f ~/.localrc.zsh ]] || source ~/.localrc.zsh # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/home/iborrelli/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/home/iborrelli/miniconda3/etc/profile.d/conda.sh" ]; then . "/home/iborrelli/miniconda3/etc/profile.d/conda.sh" else export PATH="/home/iborrelli/miniconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<