-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
35 lines (29 loc) · 1.01 KB
/
zshrc
File metadata and controls
35 lines (29 loc) · 1.01 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
[ -z "$PS1" ] && return
export PS1='lappi3> '
alias ls='ls -G'
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias su='su -l'
alias cls='clear ; ls'
alias psb='ps -U $USER -o pid,start,%cpu,%mem,nice,stat,comm'
alias grep='grep -n --color=auto'
alias ssh='ssh -Y'
alias gitpass='cat ~/.gitpass | pbcopy'
alias gvim='f(){open /Applications/MacVim.app --args $1};f'
alias netbeans='open /Applications/Apache\ NetBeans.app --args --jdkhome $JAVA_HOME'
alias visualvm='open /Applications/VisualVM.app --args --jdkhome $JAVA_HOME'
alias vncviewer='f(){open /Applications/VNC\ Viewer.app --args localhost:590${1#:}};f'
alias vncviewerosx='f(){open vnc://localhost:590${1#:}};f'
alias vncssh='f(){ssh -L 590${2#:}:localhost:5901${2#:} $1};f'
function cvmfs {
y=( sft.cern.ch oasis.opensciencegrid.org )
[ $# -ne 0 ] && y="$@"
for x in "${@:1:$#-1}"; do
if ! ( mount | grep $x >& /dev/null )
then
sudo mount -t cvmfs $x /cvmfs/$x
fi
done
}
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh