-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
72 lines (59 loc) · 1.61 KB
/
.bash_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
# some more ls aliases
alias l='ls -CF'
alias la='ls -A'
alias lg='ll -A | grep -i'
alias ll='ls -alFh'
alias lt='ll -t'
## Keeping things organized
alias biggest='BLOCKSIZE=1048576; du -x | sort -nr | head -10'
alias cp='cp -i'
alias df='df -h'
alias du='du -h -c'
alias fsort='~/workspace/personal/auto_sorter/sort'
alias mkdir='mkdir -p -v'
alias mv='mv -i'
alias reload='source ~/.bashrc'
## Moving around & all that jazz
alias back='cd $OLDPWD'
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
## Dir shortcuts
alias localhost='cd /var/www'
## App-specific
alias nano='nano -W -m'
alias ftp='ncftp Personal'
alias wget='wget -c'
alias scrot='scrot -c -d 7'
## Easy script callin'
alias show-info='~/.bin/info.pl'
alias show-colors='~/.bin/colors.sh'
## Misc
alias pg='ps -ef | grep'
# some development quick n dirty shortcuts
alias cap='bundle exec cap'
alias rake='bundle exec rake'
alias pyserver='python -m SimpleHTTPServer'
# NeoVim for the win
alias vi='nvim'
alias vim='nvim'
alias gvim='nvim'
# use most recent version of git-cola
alias cola='git-cola'
# OS specific aliases
if [[ $OSTYPE == darwin* ]]; then
# OSX specific aliases
alias wtf='bbq'
else
# Sudo fixes
alias orphand='sudo deborphan | xargs sudo apt-get -y remove --purge'
alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean && sudo apt-get remove && orphand'
alias updatedb='sudo updatedb'
# apt-get
alias si='sudo apt-get install'
alias sd='sudo apt-get update'
# just fuck it
alias fuck='sudo "$BASH" -c "$(history -p !!)"'
fi