alias for listing files with assume unchanged status
[dotfiles] / .bash_aliases
1 #!/bin/sh
2 # my weird aliases
3
4 alias my_tcp_sockets='ss -s'
5 alias my_tcp_sockets2='netstat -s'
6 alias my_open_ports2='ss -l'
7 alias my_open_ports='netstat -tupln'
8 alias my_open_tcp_port='netstat -plnt'
9
10
11 # emacsclient is too long to write
12 alias emax="emacsclient -c"
13
14 alias my_laptop_serial_number='sudo dmidecode -t 1 | grep -i serial'
15
16 alias my_show_user_process='ps wu -U'
17
18
19 alias my_send_email="emacsclient -c --eval '(mail)'"
20 alias my_emails="emacsclient -c --eval '(gnus)'"
21
22 alias my_architecture='dpkg --print-architecture'
23 alias my_number_of_cores='cat /proc/cpuinfo |grep processor'
24
25 alias ip='sudo ip'
26 alias dhclient='sudo dhclient'
27
28 alias my_debian_version='sudo cat /etc/debian_version'
29 alias my_ubuntu_version='sudo cat /etc/issue'
30 alias my_kernel_info='uname -a'
31 alias my_kernel_release='uname -r'
32
33 alias emacs="emacs -nw"
34 alias grep="grep --color=auto"
35 alias fgrep="fgrep --color=auto"
36 alias egrep="egrep --color=auto"
37
38 alias mkdir='mkdir -p'
39
40 alias my_processes='ps aux | grep'
41
42 # some more ls aliases
43 alias ls='ls --hide="*~" --color'
44 alias dir='dir --color=auto'
45 alias vdir='vdir --color=auto'
46 alias ll='ls -lh'
47 alias la='ls -lah'
48
49 # some more mor aliases
50 alias aptitude="sudo aptitude"
51 alias mkdir="mkdir -p"
52 alias service="sudo service"
53 alias halt='sudo halt'
54 alias wvdial='sudo wvdial'
55 alias apt-get='sudo apt-get'
56 alias dpkg='sudo dpkg'
57
58 alias h="history"
59 alias j="jobs -l"
60
61 alias ..="cd .."
62 alias ....="cd ../.."
63 alias ......="cd ../../.."
64
65 #git
66 alias gstatus='git status'
67 alias gcheckout='git checkout'
68 alias gcommit='git commit'
69 alias grebase='git rebase'
70 alias gbranch='git branch'
71 alias gpull='git pull'
72 alias gpush='git push'
73 alias gadd='git add'
74 alias gmergetool='git mergetool'
75 alias gdiff='git diff --color'
76 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"'
77 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"'
78
79 alias du="du -kh" # Makes a more readable output.
80 alias df="df -kTh"
81
82 alias ifconfig='/sbin/ifconfig'
83 alias sshx='ssh dev_server'
84 alias my_gatewayaddress="netstat -nr"
85
86 alias reload_tmuxconf="tmux source-file ~/.tmux.conf"
87 alias reload_bash="source ~/.bashrc"
88 alias reload_alsa="service alsa-utils restart"
89 alias reload_bluetooth='service bluetooth restart'
90
91 # virtualenv
92 alias my_wifi_list="sudo iw wlan0 scan | less"