-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
51 lines (40 loc) · 1.73 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
alias c="clear"
alias x="exit"
alias xt="xterm & sleep .8s && transset -a 0.4"
export EDITOR="vim"
# better management of large ouput commands
# log interactive -> only filter by terms
alias li="tee lastcommand.log | egrep -C3 -n "
# simply open the full output
alias lo="vi lastcommand.log"
# related to git
alias gl="git log --oneline"
# xmessage output
alias xm='xmessage -file - -center -default okay -center -fg "#eeeeee" -bg "#003366"'
# related to quilt
alias q="quilt"
# tab completion for q too
complete -F _quilt_completion $_quilt_complete_opt q
alias qv='vi $(q files | dmenu -l 10)'
alias qe='vi $(q files | dmenu -l 10); q refresh'
alias qs='q series'
alias qr='q remove $(q files | dmenu -l 10)'
alias qa='q add $(find . | dmenu -l 10)'
# related to emacs/orgmode
alias omtodos="emacs -batch -l ~/.emacs -eval '(org-batch-agenda \"t\")' | tail -n+3"
# related to syncing files
alias sync_blog_dryrun="aws s3 sync --dryrun ./blog s3://www.chandergovind.org/blog/ --acl public-read --size-only"
alias sync_blog="aws s3 sync ./blog s3://www.chandergovind.org/blog/ --acl public-read --size-only"
alias sync_index="aws s3 cp ./index.html s3://www.chandergovind.org/index.html --acl public-read"
alias sync_boty="aws s3 cp ./boty.html s3://www.chandergovind.org/boty.html --acl public-read"
alias sync_readings="aws s3 cp ./readings.html s3://www.chandergovind.org/readings.html --acl public-read"
alias sync_quotes="aws s3 cp ./quotes.html s3://www.chandergovind.org/quotes.html --acl public-read"
alias sync_writings="aws s3 cp ./Writings.zip s3://writings.chandergovind.org/"
# general settings
if [ -f ~/.shell_options ]; then
source ~/.shell_options
fi
# source local settings
if [ -f ~/.local_aliases ]; then
source ~/.local_aliases
fi