-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.alias
More file actions
49 lines (40 loc) · 1.9 KB
/
.alias
File metadata and controls
49 lines (40 loc) · 1.9 KB
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
# enable color support of ls and also add handy aliases
if [[ -x /usr/bin/dircolors ]]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias less='less --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# Auto exclude VCS directories from grep
if [[ "$OSTYPE" != darwin* ]] ; then
# this will also fail on other BSD systems
alias grep='grep --exclude-dir=.svn --exclude-dir=.git --exclude-dir=.hg'
fi
if [[ "$OSTYPE" == darwin* ]]; then
alias ls='ls -G'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias xclip="xclip -selection c"
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
alias update_upgrade='sudo bash -c "apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y"'
alias clean_pyc="find . -name '*pyc' -delete"
# simple windows commands
alias dir="ls"
alias cls="clear"
# django i18n aliases
alias create_i18n="mkdir -p locale; django-admin.py makemessages -l nl -e txt -e py -e html; django-admin.py makemessages -l fr -e txt -e py -e html; django-admin.py compilemessages"
alias update_i18n="django-admin.py makemessages -a -e txt -e py -e html; django-admin.py makemessages -a -e txt -e py -e html -d djangojs; django-admin.py compilemessages"
alias init_yubikey='setxkbmap -device $(xinput list --short "Yubico Yubico Yubikey II" | cut -f 2 | cut -d = -f 2) us'