-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathzshrc
74 lines (59 loc) · 2.3 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
# oh-my-zsh
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME=agnoster
plugins=(git)
source $ZSH/oh-my-zsh.sh
# atuin
eval "$(atuin init zsh)"
# ad
alias add="python3 ~/Library/Python/3.9/lib/python/site-packages/advance_touch.py"
# bat
alias cat='batcat --style="header" --paging=never'
alias catn='batcat --pager "less -RF"'
alias batn='batcat --pager "less -RF"'
# btop
alias top="btop --utf-force"
alias btop="btop --utf-force"
alias htop="btop --utf-force"
# cheat
alias "?"="cheat"
alias "??"="cheat perso"
alias cheat-update='git -C ~/.config/cheat/cheatsheets/papamica/ pull > /dev/null 2> /dev/null && echo " ✅ Cheats updated !"'
# direnv
eval "$(direnv hook zsh)"
# exa
alias ls="exa -a --icons" # short, multi-line
alias ll="exa -1a --icons" # list, 1 per line
alias ld="ll" # ^^^, NOTE: Trying to move to this for alternate hand commands
alias la="exa -lagh --icons" # list with info
alias lt="exa -a --tree --icons --level=2" # list with tree level 2
alias ltf="exa -a --tree --icons" # list with tree
alias lat="exa -lagh --tree --icons" # list with info and tree
# fd
alias locate="fdfind"
alias find="fdfind"
# fuck
eval $(thefuck --alias)
# git
gic() { eval 'git add . && git commit -a -m "'$@'" && git push'}
gbc() { eval 'git pull && git checkout -b '$@' && git push --set-upstream origin '$@''}
gweb() { git remote -v | head -n 1 | awk -F "@" '{print $2}' | awk -F " " '{print $1}' | sed 's/:/\//g' | sed 's/.git//g' | awk '{print "http://"$1}' | xargs open }
alias gaa="git add *"
alias ga="git add"
alias gps="git push"
alias gpl="git pull"
# openStack
alias openstack-delete-all="openstack server list | awk '$2 && $2 != \"ID\" {print $2}' | xargs -n1 openstack server delete"
alias openstack="openstack --os-compute-api-version 2.79"
alias osl="openstack --os-compute-api-version 2.79 server list --fit-width"
o() { openstack --os-compute-api-version 2.79 "$@" --fit-width ;}
oss() { openstack --os-compute-api-version 2.79 server show "$@" --fit-width ;}
# ripgrep
alias grep="rg"
# z
. /bin/z/z.sh
# zsh_autocompletion
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#808080"
# zsh-syntax-highlighting
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh