-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
109 lines (92 loc) · 3.72 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# zmodload zsh/zprof
export ZSH="$HOME/.oh-my-zsh"
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
ZSH_THEME="agnoster"
plugins=(git dotbare)
export DOTBARE_DIR="$HOME/.dotfiles"
export DOTBARE_TREE="$HOME"
source /usr/share/zsh/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
export MANPATH="/usr/local/texlive/2024/texmf-dist/doc/man:$MANPATH"
export INFOPATH="/usr/local/texlive/2024/texmf-dist/doc/info:$INFOPATH"
export PATH="/usr/local/texlive/2024/bin/x86_64-linux:$PATH"
# add user local bin
if [ -d "$HOME/.local/bin" ] ; then
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:$HOME/.nvm"
export PATH="$PATH:$HOME/.yarn/bin"
fi
# (&>/dev/null wal -R &)
alias h=history
alias please=sudo
alias dog=cat
alias more=less
alias open=xdg-open
alias nivm=nvim
alias nmt='neomutt && ((pgrep mbsync && pkill mbsync) || exit 0)'
alias zshcfg='nvim ~/.zshrc && source ~/.zshrc'
alias kittycfg='nvim ~/.config/kitty/kitty.conf'
alias kk='vdirsyncer -v WARNING sync google; khal interactive; (vdirsyncer -v WARNING sync google &)'
alias den='code ~/dendron/dendron.code-workspace'
alias backup-config='mackup backup && ~/dotfiles/sync.sh'
alias save-command='source ~/.scripts/save-command.sh'
alias zshfetch='neofetch; zsh'
alias s='kitty +kitten ssh'
alias icat='kitten icat'
alias c='wl-copy'
alias v='wl-paste'
alias hg='history | grep'
alias sb='sudo ddcutil -d 1 setvcp 10'
alias SHUTDOWN='shutdown -h now'
alias timesync='sudo ntpd -qg && sudo hwclock --systohc'
alias remake='make clean && make'
hash -d Projects=~/Projects
hash -d Documents=/media/josh/main/Documents
hash -d Pictures=/media/josh/main/Pictures
hash -d Videos=/media/josh/main/Videos
# PROMPT='%{%K{black}%}%{%F{default}%}%(!.%{%F{yellow}%}.)🌈'$PROMPT
# RPROMPT="[%D{%f/%m/%y} | %D{%L:%M:%S}]"
export PATH="$HOME/.poetry/bin:$PATH"
export PATH="$HOME/.ghcup/bin:$PATH"
export EDITOR="/usr/bin/nvim"
export ZVM_VI_EDITOR="/usr/bin/nvim"
export VISUAL="/usr/bin/nvim"
export STARSHIP_LOG="error"
export SUDO_PROMPT=$'\a[sudo] please enter your password: '
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
fpath+=${ZDOTDIR:-~}/.zsh_functions
[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh
[[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh
# export PATH="/opt/anaconda/bin:$PATH" # commented out by conda initialize
# [ -f "/home/josh/.ghcup/env" ] && source "/home/josh/.ghcup/env" # ghcup-env
# [ -f "/home/josh/.ghcup/env" ] && source "/home/josh/.ghcup/env" # ghcup-env
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/anaconda/etc/profile.d/conda.sh" ]; then
. "/opt/anaconda/etc/profile.d/conda.sh"
else
export PATH="/opt/anaconda/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
eval "$(starship init zsh)"
# zprof
# heroku autocomplete setup
HEROKU_AC_ZSH_SETUP_PATH=/home/josh/.cache/heroku/autocomplete/zsh_setup && test -f $HEROKU_AC_ZSH_SETUP_PATH && source $HEROKU_AC_ZSH_SETUP_PATH;
PATH="/home/josh/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/home/josh/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/josh/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/home/josh/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/josh/perl5"; export PERL_MM_OPT;