-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.myzsh_aliases
108 lines (67 loc) · 2.75 KB
/
.myzsh_aliases
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
# vim: syntax=zsh:
#Setting the default text editor
export EDITOR='vim'
export VISUAL='vim'
#alias push='git push origin master'
alias fzy='fzy -l 20'
export FZF_DEFAULT_OPTS='--reverse --height=20'
# Working with dotfiles
alias dotfiles='git -C "$ZFILES_HOME" '
# apt alias
alias apt-get=apt
alias py=ptpython
alias py2=ptpython2
alias py3=python3
alias python=python3
#list top 10 biggest directories/files
alias disten='du -ahd1 | sort -rh | head -n10 '
# exa aliases
alias ll="exa -l --git --time-style=long-iso --group-directories-first"
alias l="exa -la --git --time-style=long-iso --group-directories-first"
alias la="exa -lahg --git --time-style=long-iso --group-directories-first"
alias ls="exa --group-directories-first"
#SUDO ALIAS
alias sudo='sudo -p "$(print -P " %F{red}\ue0c2%f%K{016} sudo %k%F{red}\ue0c0%f% %F{247}Please enter password for [%f%F{green}${USER}%f%F{247}] : %f%k\n")" '
#Download
#alias download='aria2c -x16 $( xclip -selection c -o ) '
#Custom Scripts
export PATH=$HOME/Documents/scripts:$PATH
# Already exported on MAC
# export PATH=$PATH:/usr/local/bin
#Python binaries from pip
export PATH=~/.local/bin:$PATH
# # Linuxbrew
# export PATH=$PATH:/home/linuxbrew/.linuxbrew/bin
# #CTF Tools
# export PATH=$PATH:~/Documents/tools/ctf-tools/bin
export PYTHONIOENCODING='UTF-8'
isLinux && alias pbpaste="xclip -o -s c"
isLinux && alias pbcopy="xclip -selection clipboard"
# alias ssh='TERM=xterm-color ssh '
# alias gce='TERM=xterm-256color gcloud compute ssh'
#alias k9s='EDITOR="code --wait" k9s '
! isMac && alias tldr='docker run --rm -it -v ~/.tldr/:/root/.tldr/ nutellinoit/tldr'
isMac && export LC_CTYPE=en_US.UTF-8
isMac && export LC_ALL=en_US.UTF-8
# add krew path if it exists
KREW_BIN_PATH="${HOME}/.krew/bin"
if [ -d "$KREW_BIN_PATH" ]; then
export PATH="${PATH}:${KREW_BIN_PATH}"
fi;
# the root fs of the vm is at /containers/services/docker/rootfs
alias docker-ssh='docker run -it --rm --privileged --pid=host justincormack/nsenter1 '
export GEM_HOME="$HOME/.gems"
export PATH="$GEM_HOME/bin:$PATH"
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:$PATH"
export FLUTTER_SDK="$HOME/fvm/versions/stable/bin"
export PATH="$FLUTTER_SDK:$PATH"
SDKMAN_DIR="$HOME/.sdkman"
SDKMAN_INIT_SCRIPT="$SDKMAN_DIR/bin/sdkman-init.sh"
[[ -s "$SDKMAN_INIT_SCRIPT" ]] && source "$SDKMAN_INIT_SCRIPT"
# alias ec2=""
isMac && export PATH="/opt/homebrew/opt/ruby/bin:$HOME/.gem/ruby/3.2.0/bin:$PATH"
_LIBPQ_BIN_PATH=/opt/homebrew/opt/libpq/bin
isMac && [ -d "$_LIBPQ_BIN_PATH" ] && export PATH="$_LIBPQ_BIN_PATH:$PATH"
isMac && type brew &>/dev/null && type gcloud &>/dev/null && source "$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc" && source "$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc"
isMac && alias dragon='open -a yoink '