-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
77 lines (57 loc) · 1.6 KB
/
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
#@@@@@@@@@@@@@@@@@@
#@@ Aliases
#@@@@@@@@@@@@@@@@@@
alias ..="cd .."
alias ...="cd ../.."
alias "c.."="cd .."
alias "c-"="cd -"
alias "c~"="cd $HOME"
alias "cd-"="cd -"
# Mini-aliases :)
alias j="jobs"
alias f="fg"
alias b="bg"
alias q="exit"
alias l="ls --color=auto -h"
alias a="ls -ha"
alias d="date"
alias p='pwd'
alias h='hostname'
alias t='tree'
alias t1='t -L 1'
alias t2='t -L 2'
alias t2='t -L 3'
alias ll="l -l"
alias la="a -l"
# Allows to keep aliases in sudo
alias sudo="sudo "
#alias sudo="sudo -E" # Useful to keep variables environment when you are root
# ping the DNS google
alias goo="ping 8.8.8.8"
alias goog="ping www.google.com"
# Grep-based aliases
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias pgrep2="ps -ef | grep"
# Substitute the stdin containing "\n" char with an actual return
alias ret='sed '\''s/\\n/\n/g'\'
# Looks up to the history
alias hgrep='history | grep'
# Open screen+irssi
alias scrssi="screen -S scrssi -aARd -t irssi irssi; clear"
# less case insensitive
alias les="less -i"
# Enhanced ssh for X11 forwarding and 256 colors
alias sshx="TERM=xterm-256color LANG=en_US.UTF-8 ssh -Y"
# Enhanced mosh for 256 colors
alias moshx="LANG=en_US.UTF-8 mosh"
alias webserver='python2.7 -m SimpleHTTPServer'
alias webserver3='python -m http.server'
alias cal2='cal -3 -m'
alias calc='bc -li'
alias whatthecommit="curl --silent --fail https://whatthecommit.com/index.txt"
# For screenshot selection: sshot -s
alias sshot="scrot -q 100 '%Y-%m-%d_%H%M%S-\$wx\$h.png' -e 'mv \$f ~/ 2>/dev/null'"
#@@@@@@@@@@@@@@@@@@@
# vim: set ft=sh