-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
141 lines (95 loc) · 3.97 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
export ZSH="/home/ex/.oh-my-zsh"
export SUDO_EDITOR=`which nvim`
ZSH_THEME="agnoster"
DEFAULT_USER=ex
CASE_SENSITIVE="true"
HYPHEN_INSENSITIVE="true"
DISABLE_UPDATE_PROMPT="true"
export UPDATE_ZSH_DAYS=10
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#757575'
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=60'
#ZSH_HIGHLIGHT_STYLES[comment]=fg=60
ENABLE_CORRECTION="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(enhancd git zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search colored-man-pages zsh-fzf-history-search)
source $ZSH/oh-my-zsh.sh
#source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
source /home/ex/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme
#sh /opt/solarized8.sh
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/.local/bin
export PATH=$PATH:~/.local/share/gem/ruby/3.0.0/bin/
export PATH=$PATH:~/.cargo/bin
export PATH=$PATH:/opt/llvm-project/build/bin
# export LD_LIBRARY_PATH=/opt/llvm-project/build/lib:$LD_LIBRARY_PATH
export PATH="$DENO_INSTALL/bin:$PATH"
export LC_ALL=en_US.UTF-8
export EDITOR='/usr/local/bin/nvim'
export VISUAL='/usr/local/bin/nvim'
# export FZF_DEFAULT_OPTS='--color fg:-1,bg:-1,hl:33,fg+:254,bg+:-1,hl+:33 --color info:136,prompt:136,pointer:230,marker:230,spinner:136'
bindkey '^k' history-substring-search-up
bindkey '^j' history-substring-search-down
# export MANPATH="/usr/local/man:$MANPATH"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
alias tmux="tmux -u"
alias cd-="cd -"
alias cd..="cd .."
alias die="exit"
alias cat="bat"
alias ls="exa"
alias ga="git add ."
alias gc="git commit -m"
alias gp="git push"
alias clip="xclip -selection c"
alias pwnstart="docker "
alias pi="pwninit --template-path /opt/exploit.py"
alias check='checksec'
alias p='ptipython'
alias t='tmux'
alias g='gdb'
alias c='clear'
alias S='sudoedit'
alias v='nvim'
alias fd='fdfind'
alias e="emacsclient -c -a 'emacs'"
# CTFing
# alias www="list_ips && ls_pwd && sudo python3 -m http.server 80"
alias www="list_ips && sudo python3 -m http.server 80"
alias tun0="ifconfig tun0 | grep 'inet ' | cut -d' ' -f10 | tr -d '\n' | xclip -sel clip"
py_tty_upgrade () {
echo "python -c 'import pty;pty.spawn(\"/bin/bash\")'"| xclip -sel clip
}
py3_tty_upgrade () {
echo "python3 -c 'import pty;pty.spawn(\"/bin/bash\")'"| xclip -sel clip
}
alias script_tty_upgrade="echo '/usr/bin/script -qc /bin/bash /dev/null'| xclip -sel clip"
alias tty_fix="stty raw -echo; fg; reset"
alias tty_conf="stty -a | sed 's/;//g' | head -n 1 | sed 's/.*baud /stty /g;s/line.*//g' | xclip -sel clip"
list_ips() {
ip a show scope global | awk '/^[0-9]+:/ { sub(/:/,"",$2); iface=$2 } /^[[:space:]]*inet / { split($2, a, "/"); print "[\033[96m" iface"\033[0m] "a[1] }'
}
alias curlp="curl --proxy http://localhost:8080"
bindkey -v
bindkey '^K' history-substring-search-up
bindkey '^J' history-substring-search-down
bindkey '^F' autosuggest-accept
bindkey '^[.' insert-last-word
bindkey '^r' fzf_history_search
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
bindkey -M vicmd '^r' fzf_history_search
eval "$(thefuck --alias)"
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
# alias load_nvm='export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"'
# alias node='unalias node npm && load_nvm && node'
# alias npm='unalias node npm && load_nvm && npm'
alias luamake=/opt/lua-language-server/3rd/luamake/luamake