# prompt export PS1="%{%F{226}%}%n%{%F{220}%}@%{%F{214}%}%m %{%F{33}%}%1~ %{%f%}$ " # aliases # alias python="/Library/Frameworks/Python.framework/Versions/3.10/bin/python3" alias cp="cp -i" alias more="less" alias weather="curl wttr.in" alias ls="exa -lhg --group-directories-first" alias ll="exa -lhga --group-directories-first" alias vim="nvim" alias docs="python ~/scripts/stock_price.py -s docs" alias stock="python ~/scripts/stock_price.py -s " alias rofi="rofi -m 1 " alias cls="clear & ls" # path export PATH=/home/clint/projects/:/home/clint/scripts/:$PATH # default programs export TERMINAL=alacritty export BROWSER=firefox export EDITOR=nvim # add some common key bindings bindkey "^[[H" beginning-of-line bindkey "^[[F" end-of-line bindkey "\e[3~" delete-char # history HISTFILE=~/.zhistory export HISTSIZE=10000 export SAVEHIST=10000 setopt INC_APPEND_HISTORY setopt HIST_IGNORE_DUPS bindkey '^R' history-incremental-search-backward setopt share_history # auto complete autoload -Uz compinit compinit _comp_options+=(globdots) zstyle ':completion:*' menu select # auto cd setopt auto_cd # pyenv stuff export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" export PYENV_VIRTUALENV_DISABLE_PROMPT=1 export PYTHONPATH="." eval "$(pyenv init --path)" eval "$(pyenv init -)" # eval "$(pyenv virtualenv-init -)" # fzf export FZF_DEFAULT_OPTS='--layout=reverse --height=50% --preview-window=right:50%:border-sharp --border-label=" command preview " --border=double' # Set up fzf key bindings and fuzzy completion # Ctrl+R override for bash history # Alt-C overried to cd into selected directory eval "$(fzf --zsh)" # Quick file finder with preview and open with vim (Ctrl+T override) # bind '"\C-t": "fzf --preview \"cat {}\" < <(find . -type f) | xargs $EDITOR\n"'