-
Notifications
You must be signed in to change notification settings - Fork 1
/
.alias
87 lines (78 loc) · 2.67 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
# c00kiemon5ter ([email protected]) ~ under c00kie License
## Navigation:
alias ~="cd $HOME"
alias ..="cd .."
alias ...="cd ../../"
alias cd..="cd .."
## Editors:
alias v="v.sh"
alias vl="v.sh -l"
alias sv="sudo $EDITOR"
alias svim="sudo $EDITOR"
alias vs="vim -S .vim.session"
## Common
alias df="df -h -T"
alias mkdir="mkdir -p -v"
alias ls="ls --color=auto -h -v"
alias l="ls -1F"
alias la="l -A"
alias ll="l -l"
alias lla="l -Al"
alias cp="cp -ir"
alias mv="mv -i"
alias rm="rm -I -v"
alias du="du -h"
alias lw="wmctrl -l | cut -d\" \" -f5- | sed \"s/^[[:space:]|\(].*$//\" | grep -v ^$"
alias h="history"
## files
#bash
alias reload="source $HOME/.bashrc"
alias vprof="$EDITOR $HOME/.profile && source $HOME/.profile"
alias vbash="$EDITOR $HOME/.bashrc && reload"
alias valias="$EDITOR $HOME/.alias && reload"
alias vfuncs="$EDITOR $HOME/.funcs && reload"
#x
alias vxdefs="$EDITOR $HOME/.Xresources && xrdb $HOME/.Xresources"
alias vxinit="$EDITOR $HOME/.xinitrc"
#other
alias vvim="$EDITOR $HOME/.vimrc"
alias vgit="$EDITOR $HOME/.gitconfig"
alias vmux="$EDITOR $HOME/.tmux.conf"
#etc confs
alias vmkconf="sudo $EDITOR /etc/make.conf"
alias vxorg="sudo $EDITOR /etc/X11/xorg.conf"
alias vgrub="sudo $EDITOR /boot/grub/menu.lst"
alias vrc="sudo $EDITOR /etc/rc.conf"
alias vssh="sudo $EDITOR /etc/ssh/sshd_config"
## remote ssh to uni servers
alias niovi="ssh niovi.aueb.gr"
alias alex="telnet alexandros.ccslab.aueb.gr"
alias foss="ssh foss.aueb.gr"
## Other
alias tmux="tmux -2u"
alias chromium="chromium --enable-seccomp-sandbox --memory-model=low --purge-memory-button --disk-cache-dir=/tmp/chromium"
alias mutt="dtach -A $HOME/.mutt/mutt.session mutt"
alias vnotes="$EDITOR $HOME/.notes.mkdn"
alias vquote="$EDITOR $HOME/.archquotes"
alias netbeans="netbeans --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
alias ssmem="smem -k -c 'pid uss pss rss name' -t"
alias sscrot="scrot -s /tmp/shot.png"
alias htop="htop -u $USER"
# Shows your WAN IP, when you`re sitting behind a router
#alias myip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'"
#alias myip="curl ifconfig.me"
alias myip="curl icanhazip.com"
# fortune equality
alias fortune="fortune -e -a"
# Gets a random Futurama quote from slashdot.org(/.)
alias futurama="curl -Is slashdot.org | egrep '^X-(F|B|L)' | cut -d \- -f 2"
# star wars movie on ascii
alias starwars="telnet towel.blinkenlights.nl"
# the matrix
alias matrix="tr -c \"[:digit:]\" \" \" < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR=\"1;32\" grep --color \"[^ ]\""
# binary clock
alias binclock="watch -n 1 'echo \"obase=2;\`date +%s\`\" | bc'"
# randomizers
#echo $(shuf -i 1-49 | head -n6 | sort -n)'
alias lotto="shuf -i 1-49 | head -n6 | sort -n | xargs"
# vim: nospell