-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
62 lines (43 loc) · 1.45 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt SHARE_HISTORY
export SHELL="zsh"
export EDITOR="nvim"
export "$(cat $HOME/secret.env | xargs)"
export "$(cat $HOME/.env | xargs)"
plugins=(git)
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_THEME=""
alias FM="cd ~/Documents/ms_proj"
alias pa="source ./.venv/bin/activate"
alias ut="python -m unittest discover -p 'test_*.py' -s test"
alias gg="lazygit"
alias nt="cargo nextest run"
alias dc="docker compose"
export VPN="$HOME/openvpn_sean_craven.ovpn"
eval "$(starship init zsh)"
export FZF_COMPLETION_OPTS='--border --info=inline'
_fzf_compgen_path() {
fd --hidden --follow --exclude ".git" . "$1"
}
# Use fd to generate the list for directory completion
_fzf_compgen_dir() {
fd --type d --hidden --follow --exclude ".git" . "$1"
}
_fzf_comprun() {
local command=$1
shift
case "$command" in
cd) fzf --preview 'tree -C {} | head -200' "$@" ;;
export|unset) fzf --preview "eval 'echo \$'{}" "$@" ;;
ssh) fzf --preview 'dig {}' "$@" ;;
*) fzf --preview 'bat -n --color=always {}' "$@" ;;
esac
}
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
source <(fzf --zsh)
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
. "/home/sean/.deno/env"