-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
90 lines (68 loc) · 2.79 KB
/
.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Allow aliases to be with sudo
#alias sudo="sudo "
# Tunnelled access to lbgw:
alias lbtun='ssh -N -f -q lbtun'
alias lbtunkill="for i in \`ps auxww | grep lbtun | grep -v grep | awk '{print \$2}'\`; do echo killing \$i; kill \$i; done"
#git:
alias gpull='git pull'
alias gpupu='git pull && git push'
alias gstat='git status'
alias gcom='git commit -m '
alias gadd='git add '
#CERN Kerberos Init
alias mykinit='kinit -l 7d mdemmer@CERN.CH'
#conda envs:
alias p8zep='source activate zeppelin'
alias root6py2='source activate root6py2'
alias root6py3='source activate root6py3'
#special sshfs mounts
alias mountlxplus='sshfs lxplus:/afs/cern.ch/user/m/mdemmer ~/MountPoints/lxplus-home -o auto_cache,reconnect,volname=lxplus-home,no_readahead,noappledouble,nolocalcaches,follow_symlinks'
alias mounteve='sshfs eve:~ ~/MountPoints/eve2-home -o auto_cache,reconnect,volname=eve2-home,no_readahead,noappledouble,nolocalcaches,follow_symlinks'
alias mountfhgfs='sshfs eve:/fhgfs ~/MountPoints/fhgfs -o auto_cache,reconnect,volname=FhGFS,no_readahead,noappledouble,nolocalcaches,follow_symlinks'
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ~="cd ~"
alias -- -="cd -"
# be faster aliase
alias cd..='cd ..'
alias ..='cd ..'
alias ...='cd ../..'
alias cl='clear'
alias cls='clear'
alias h='history'
alias df='df -h'
# List dir contents aliases
# ref: http://ss64.com/osx/ls.html
# Long form no user group, color
alias l="ls -oG"
alias ll='ls -lahG'
# Order by last modified, long form no user group, color
alias lt="ls -toG"
# List all except . and ..., color, mark file types, long form no user group, file size
alias la="ls -AGFoh"
# List all except . and ..., color, mark file types, long form no use group, order by last modified, file size
alias lat="ls -AGFoth"
# add standard options to command
alias mkdir="mkdir -vp"
# print out $PATH
#alias path ="echo -e ${PATH//:/\\n}"
# Concatenate and print content of files (add line numbers)
alias catn="cat -n"
# Show/hide hidden files in Finder
alias showdotfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hidedotfiles="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# resume scp
alias scpresume='rsync --partial --progress --rsh=ssh'
#LHCb Software etc
alias lhcbSetup='source /lhcbsoft/LHCbSoftwareSetup.sh'
alias spr='SetupProject ROOT'
alias spb='SetupProject Brunel'
alias spd='SetupProject DaVinci'
alias spg='SetupProject Gauss'
alias spgg='SetupProject Ganga'
alias py2root5='source /opt/rh/miniconda/scripts/py2root5.sh'
alias py2root6='source /opt/rh/miniconda/scripts/py2root6.sh'
alias py3root6='source /opt/rh/miniconda/scripts/py3root6.sh && cd /opt/rh/miniconda/envs/py3root6/bin/ && source thisroot.sh'
# ROOT stuff
#alias root='/Applications/root/bin/root.exe'