-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.alias
117 lines (107 loc) · 3.46 KB
/
.alias
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
alias myhistory="history | awk '{CMD[\$2]++;count++;}END { for (a in CMD)print CMD[a] \" \" CMD[a]/count*100 \"% \" a;}' | grep -v \"./\" | column -c3 -s \" \" -t | sort -nr | nl | head -n20"
alias ping8="ping 8.8.8.8"
alias v="PYENV_VERSION=3.5.1 nvim"
alias va="vagrant"
alias vap="vagrant provision"
alias vas="vagrant ssh"
alias vau="vagrant up"
alias valias="nvim ~/dotfiles/.alias && salias"
alias vrc="nvim ~/dotfiles/init.vim"
alias salias="source ~/dotfiles/.alias"
alias cpav="cp -av"
alias rmrf="rm -rf"
alias ropen='reattach-to-user-namespace open'
alias topm="top -o MEM"
alias be="bundle exec"
alias ber="bundle exec ruby"
alias beg="bundle exec guard"
alias ra="rubocop -a"
alias rubocop-master="git diff master --name-only | xargs rubocop -A"
alias py="python"
alias py3="python3"
alias fuck='sudo $(fc -ln -1)'
alias ducks='du -cks * | sort -rn | head'
alias duh='du -h'
alias dc='docker-compose'
alias dcb='docker-compose build'
alias dcbu='docker-compose build && docker-compose up'
alias gdh='git diff HEAD'
alias glf='git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -10'
alias glr='git pull --rebase'
alias glol1='git log -1 --format="%H"'
alias gaas="gaa & gst"
alias ga="git add"
alias gaa="git add ."
alias gdc="git diff --cached"
alias grh='git reset HEAD'
alias gst="git status"
alias gap="git add -p"
alias gco="git checkout"
alias gd="git diff"
alias gp="git push"
alias gpf="git push --force-with-lease"
alias gcmsg="git commit --message"
alias grebasemaster="gco master && glr && gco - && git rebase master"
alias grebasemain="gco main && glr && gco - && git rebase main"
alias gmergemaster="gco master && glr && gco - && git merge master"
alias gmergemain="gco main && glr && gco - && git merge main"
alias grv="git remote -v"
alias gcb="git checkout -b"
alias gcl="git clone"
alias cta='ctags --recurse .'
alias wifi='networksetup -setairportpower en0 off && networksetup -setairportpower en0 on'
alias ipy='ipython'
alias findn='find . -name'
alias transp='trans :pt-br'
alias vinit='v ~/dotfiles/init.vim'
alias psa='ps aux | grep'
#alias e='emacsclient "$@" -a "" -c'
#alias ec='emacsclient "$@" -a "" -c -n'
alias f=fzf
alias vf='v $(f)'
alias vn='v ~/notas'
alias reddit="rtv"
alias l='ls -lah'
alias ag="ag --hidden"
alias envg="env | grep "
# Tmuxinator
alias mux='tmuxinator'
alias txs='tmuxinator start'
alias txo='tmuxinator open'
alias txn='tmuxinator new'
alias txl='tmuxinator list'
#tmux
alias tn='tmux new-session -A -s main'
# Yarn
alias y="yarn"
alias yisd="yarn install save-dev"
alias yisd="yarn install --save-dev"
alias yig="yarn install -g"
alias yr="yarn run"
alias yrd="yarn run dev"
alias yrt="yarn run test"
# npm
alias npmclean="rm -rf node_modules && npm install"
alias nr="npm run"
alias ns="npm start"
alias ni="npm install"
alias nis="npm install --save"
alias nisd="npm install --save-dev"
alias nig="npm install -g"
# arch
alias y="yay"
alias ys="yay -S"
alias arch-drop-caches='sudo paccache -rk3; yay -Sc --aur --noconfirm'
alias arch_update_all='export TMPFILE="$(mktemp)"; \
sudo true; \
rate-mirrors --save=$TMPFILE arch --max-delay=21600 \
&& sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup \
&& sudo mv $TMPFILE /etc/pacman.d/mirrorlist \
&& arch-drop-caches \
&& yay -Syyu --noconfirm'
# listen your mic sound
alias playback="arecord -f cd - | aplay -"
# Clipboard management
alias setclip="xclip -selection c"
alias getclip="xclip -selection c -o"
alias vi3="nvim ~/.config/i3/config"