-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbase_aliases
More file actions
54 lines (48 loc) · 1.23 KB
/
base_aliases
File metadata and controls
54 lines (48 loc) · 1.23 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
50
51
52
53
54
#!/bin/bash
alias less='less -r' # raw control characters
alias vi=vim
alias ci=vi # Common mistype with disasterous consequences.
alias whence='type -a' # where, of a sort
alias grep='grep --color' # show differences in colour
alias l='less -r'
alias R='R -q'
alias date='date "+%F"'
alias ipython='ipython3'
alias tra='trash'
alias gpp='g++'
alias tp='trash-put'
alias tarp='tar --use-compress-program=pigz'
alias mcrypt='mcrypt -u'
alias rsync='rsync --progress'
alias qs='qstat -a'
alias di='ls'
alias dc='cd ..'
alias update="sudo apt-get update; sudo apt-get dist-upgrade -y ; sudo apt-get autoremove -y"
alias mod="module"
# TODO ignore input after these function calls.
function excellent {
echo "Thank you, sir."
}
function shit {
echo "Sorry, sir"
}
# Exporting functions makes them available outside the command line.
function py {
python3 -W ignore -u $@
}
export -f py
function py2 {
python2 -W ignore -u $@
}
export -f py2
# git shortcuts.
alias gs='git status'
alias gc='git commit'
alias gp='git push'
alias ga='git add'
alias gd='git diff'
# Globus shortcuts.
gflat='c3dc2ae2-74c6-11e8-93bb-0a6d4e044368'
gsdsc='f327a108-b5cd-11e8-8241-0a3b7ca8ce66'
# Globus CLI
glob='busemey2@cli.globusonline.org'