2025-03-14 04:38:17 +00:00
|
|
|
# prompt
|
|
|
|
export PS1="%{%F{226}%}%n%{%F{220}%}@%{%F{214}%}%m %{%F{33}%}%1~ %{%f%}$ "
|
2022-03-06 21:45:05 +00:00
|
|
|
|
2022-03-12 21:38:58 +00:00
|
|
|
# aliases
|
2023-08-25 21:27:27 +00:00
|
|
|
# alias python="/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
|
2022-03-06 21:45:05 +00:00
|
|
|
alias cp="cp -i"
|
|
|
|
alias more="less"
|
|
|
|
alias weather="curl wttr.in"
|
2022-03-12 21:38:58 +00:00
|
|
|
alias ls="exa -lhg --group-directories-first"
|
|
|
|
alias ll="exa -lhga --group-directories-first"
|
2022-08-31 03:55:23 +00:00
|
|
|
alias vim="nvim"
|
2022-09-03 02:04:46 +00:00
|
|
|
alias docs="python ~/scripts/stock_price.py -s docs"
|
2022-09-03 02:20:08 +00:00
|
|
|
alias stock="python ~/scripts/stock_price.py -s "
|
2022-09-29 01:44:12 +00:00
|
|
|
alias rofi="rofi -m 1 "
|
2022-10-03 14:40:31 +00:00
|
|
|
alias cls="clear & ls"
|
2022-03-06 21:45:05 +00:00
|
|
|
|
2022-03-12 21:38:58 +00:00
|
|
|
# path
|
2022-09-14 01:40:59 +00:00
|
|
|
export PATH=/home/clint/projects/:/home/clint/scripts/:$PATH
|
2022-03-08 07:52:59 +00:00
|
|
|
|
2022-03-12 21:38:58 +00:00
|
|
|
# default programs
|
2022-03-08 07:52:59 +00:00
|
|
|
export TERMINAL=alacritty
|
|
|
|
export BROWSER=firefox
|
2022-09-01 15:32:09 +00:00
|
|
|
export EDITOR=nvim
|
2022-03-08 07:52:59 +00:00
|
|
|
|
2022-03-12 21:38:58 +00:00
|
|
|
# add some common key bindings
|
|
|
|
bindkey "^[[H" beginning-of-line
|
|
|
|
bindkey "^[[F" end-of-line
|
|
|
|
bindkey "\e[3~" delete-char
|
|
|
|
|
|
|
|
# history
|
|
|
|
HISTFILE=~/.zhistory
|
2022-04-11 00:31:15 +00:00
|
|
|
export HISTSIZE=10000
|
|
|
|
export SAVEHIST=10000
|
|
|
|
setopt INC_APPEND_HISTORY
|
|
|
|
setopt HIST_IGNORE_DUPS
|
|
|
|
bindkey '^R' history-incremental-search-backward
|
2023-08-14 07:14:02 +00:00
|
|
|
setopt share_history
|
2022-08-31 03:55:23 +00:00
|
|
|
|
2022-03-12 21:38:58 +00:00
|
|
|
# auto complete
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
2022-04-11 00:31:15 +00:00
|
|
|
_comp_options+=(globdots)
|
2022-03-12 21:38:58 +00:00
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
|
2022-04-11 00:31:15 +00:00
|
|
|
# auto cd
|
|
|
|
setopt auto_cd
|
2022-03-12 21:38:58 +00:00
|
|
|
|
2023-08-14 07:14:02 +00:00
|
|
|
# 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 -)"
|
|
|
|
|
2025-03-14 04:38:17 +00:00
|
|
|
|
|
|
|
# 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"'
|
|
|
|
|
|
|
|
|