-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
61 lines (49 loc) · 1.56 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
if [ $SSH_CLIENT ]; then
export TERM=vt100
fi
export PATH=$PATH:~/.local/bin:~/.cargo/bin
export PATH=$PATH:~/.local/bin:~/.node_modules
# Oh My zsh
export ZSH="/home/cody/.oh-my-zsh"
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
CASE_SENSITIVE="true"
plugins=(git pip python sudo virtualenv)
source $ZSH/oh-my-zsh.sh
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
# Default applications
export EDITOR=nvim
export VISUAL=nvim
export BROWSER=brave
# Compilation flags
export ARCHFLAGS="-arch x86_64"
# Avoid dangerous commands
export HISTIGNORE="rm*"
# Colors
autoload -U colors && colors
# Path Modifications
export CDPATH=$HOME
# Useful Aliases
alias ah="sh ~/Scripts/self-control/delayed-admin/admin-helper.sh"
alias e2h="sudo self-guardian"
alias h="history | tail"
alias hg="history | grep"
alias ls='exa'
alias mv="mv -i"
alias pip-upgrade="sudo pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 sudo pip install -U"
eval $(thefuck --alias)
alias please="sudo" # add some humor to your shell
alias rm='rm -i'
alias vim='nvim'
# Aliases only useful to me
alias t="reset; sh ~/Scripts/todo/todo.sh ls"
alias todo="sh ~/Scripts/todo/todo.sh"
# Custom variables only useful to me
export fan_model="GS65_8RF"
export pcc_server="cody.sork@syccuxas01.pcc.edu"
export psu_server="csork@linux.cecs.pdx.edu"
export lab_server="csork@cs202lab.cs.pdx.edu"
export cody_public_server="45.79.90.254"
export cody_private_server="74.207.245.104"
# Requires jmp script
source "/home/cody/Scripts/Jmp/jmp_wrapper.sh"