-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.local
37 lines (30 loc) · 905 Bytes
/
aliases.local
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
# add aliases and enable color support
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# docker - set default docker machine
alias sdd='eval $(docker-machine env default)'
# git
# usage: gsquash 3 (to squash the last 3 commits)
gsquash() {
git reset --soft HEAD~"$1"
git commit --amend
}
# productivity
alias todo='$EDITOR ~/Dropbox/todo'
# system
alias fm='sudo rmmod psmouse && sudo modprobe psmouse'
alias us='sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y'
# tmux
alias tx=tmuxinator
# translating
alias tde='termit de en'
alias ted='termit en de'
alias tds='termit de es'
alias tsd='termit es de'