added some more aliases
[dotfiles] / .bash_aliases
1 #!/bin/sh
2 # my weird aliases
3
4 alias my_show_user_process='ps wu -U'
5
6 alias my_open_tcp_port='netstat -plnt'
7 alias my_open_ports='netstat -pln'
8
9 alias my_send_email='emacs -f mail'
10 alias my_emails='emacs -f gnus'
11
12 alias my_architecture='dpkg --print-architecture'
13 alias my_number_of_cores='cat /proc/cpuinfo |grep processor'
14
15 alias ip='sudo ip'
16 alias dhclient='sudo dhclient'
17
18 alias my_debian_version='sudo cat /etc/debian_version'
19 alias my_ubuntu_version='sudo cat /etc/issue'
20 alias my_kernel_info='uname -a'
21 alias my_kernel_release='uname -r'
22
23 alias emacs="emacs -nw"
24 alias grep="grep --color=auto"
25 alias fgrep="fgrep --color=auto"
26 alias egrep="egrep --color=auto"
27 alias rm='rm -i'
28 alias mkdir='mkdir -p'
29
30 alias my_processes='ps aux | grep'
31
32 # some more ls aliases
33 alias ls='ls --hide="*~" --color'
34 alias dir='dir --color=auto'
35 alias vdir='vdir --color=auto'
36 alias ll='ls -lh'
37 alias la='ls -lah'
38
39 # some more mor aliases
40 alias aptitude="sudo aptitude"
41 alias mkdir="mkdir -p"
42 alias service="sudo service"
43 alias halt='sudo halt'
44 alias wvdial='sudo wvdial'
45 alias apt-get='sudo apt-get'
46 alias dpkg='sudo dpkg'
47
48 alias h="history"
49 alias j="jobs -l"
50
51 alias ..="cd .."
52 alias ....="cd ../.."
53 alias ......="cd ../../.."
54
55 #git
56 alias gstatus='git status'
57 alias gcheckout='git checkout'
58 alias gcommit='git commit'
59 alias grebase='git rebase'
60 alias gbranch='git branch'
61 alias gpull='git pull'
62 alias gpush='git push'
63 alias gadd='git add'
64 alias gmergetool='git mergetool'
65 alias gdiff='git diff --color'
66 alias glog='git log --date-order --all --graph --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s"'
67 alias glog2='git log --date-order --all --graph --name-status --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s"'
68
69 alias du="du -kh" # Makes a more readable output.
70 alias df="df -kTh"
71
72 alias ifconfig='/sbin/ifconfig'
73 alias sshx='ssh dev_server'
74 alias my_gatewayaddress="netstat -nr"
75
76 alias reload_tmuxconf="tmux source-file ~/.tmux.conf"
77 alias reload_bash="source ~/.bashrc"
78 alias reload_alsa="service alsa-utils restart"
79 alias reload_bluetooth='service bluetooth restart'
80
81 # virtualenv