-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaliases
executable file
·108 lines (105 loc) · 3.89 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# List files tracked in a Git repo
alias gitfilelist='git ls-tree -r master --name-only'
# Simple shortcut
alias l='ls -lrth'
# Simple shortcut
alias ll='ls -lh'
# Simple shortcut
alias gcon='rose suite-gcontrol'
# Display line numbers and percentage through file
alias less='less -M -N'
# Go to /hpcf/working/williamsjh directory
alias working='cd /hpcf/working/williamsjh/'
# Go to /hpcf/data/williamsjh directory
alias data='cd /hpcf/data/williamsjh/'
# Go to ~/roses
alias c='clear'
# Go to ~/roses
alias r='cd ~/roses'
# Go to branches dir
alias br='cd /nesi/project/niwa00013/williamsjh/branches'
# Alias log to 'rose suite-log'
alias log='rose suite-log'
# Alias cr to 'cd ~$USER/cylc-run'
alias cr='cd ~williamsjh/cylc-run'
# Alias crreal to 'cd /nesi/nobackup/niwa00013/williamsjh/cylc-run'
alias crreal='cd /nesi/nobackup/niwa00013/williamsjh/cylc-run'
# Alias project
alias prj='cd /nesi/project/niwa00013/williamsjh'
# Alias fdg to 'fcm diff -g &'
alias fdg='fcm diff -g &'
# Alias for `cylc trigger` in PWD
alias trig='cylc trigger $(basename "$PWD")'
# Aliases for local calls to '> cylc monitor/stop/kill [suite-ID]'.
alias mn='cylc monitor $(basename "$PWD")'
alias mnr='cylc monitor $(basename "$PWD") -r'
alias mnro='cylc monitor $(basename "$PWD") -ro'
alias mno='cylc monitor $(basename "$PWD") -o'
alias cylcscan=' cylc scan -t rich --colour-blind --sort'
# cd to a Cylc suite's `work` directory and see how may atmos t steps have run
alias wtchsuite='watch "grep -ir atm_step */*/pe_output/*00|tail"'
# Open 'fcm diff' in less
alias fcmdiff='fcm diff|less'
# Force tmux to use 256 colours, tip from
# http://askubuntu.com/questions/125526/vim-in-tmux-display-wrong-colors
alias tmux='tmux -2'
# Clear terminal before running fcm commands. This is particularly useful for
# 'fcm diff'.
alias cfcm='clear ; fcm'
# Remove prompt from git to confirm which graphical diff viewer to view after
# typing 'git difftool'. This was gleaned from
# http://stackoverflow.com/questions/7897517/why-git-difftool-does-not-open-the-tool-automatically
# and was set up using 'git config --global diff.tool gvimdiff' which was in turn gleaned
# from
# http://stackoverflow.com/questions/3713765/viewing-all-git-diffs-with-vimdiff
alias gitdifftool='git difftool -y'
# Saving location of nf-config
alias nf-config='/opt/niwa/netcdf/AIX/4.3.3.1/parallel/bin/nf-config'
# Open all ~/cylc-run directories in GCylc
alias gconall='for folder in *; do cd ~/cylc-run; cd $folder; rose suite-gcontrol & cd ..; done'
# Some git aliases
# Alias to `cylc gscan`
alias gscn='cylc gscan&'
# Edit command prompt
export PS1="\h|\d|\t \D{%Z}|\W> "
# Edit command prompt
# Edit command prompt - simple
#export PS1="> "
#PS1='\[\e[0;32m\u@\w/:\[\e[m '
# Update contents of directory every 2s
alias wtch='cd . ; watch "ls -lta"'
# Update contents of directory every 2s
alias wtchh='cd .; watch "ls -ltha"'
# go to my nobackup folder
alias nobackup='cd /nesi/nobackup/niwa00013/williamsjh'
# alias 'here' for the name of the current dir you're in. This is then accessed
# with `here` (back ticks) or $(here).
alias here='$(basename $PWD)'
#clim01
alias clim01='ssh -AY w-clim01'
#cylc01
alias cylc01='ssh -AY w-cylc01'
#miniconda3
alias miniconda3='export PATH=/nesi/project/niwa00013/williamsjh/miniconda3/bin:$PATH'
#go back to system python
alias syspy='export PATH=/usr/bin:$PATH'
#vi to vim
alias vi='vim'
#most recently edited file
alias vimlatest='vim `ls -rt | tail -1`'
alias taillatest='tail `ls -rt | tail -1`'
#go to mac pictures folder
alias pics='cd /Volumes/Data/Pictures'
# mutt in japamese
#alias mutt='export LANG=ja_JP; mutt'
# mutt in koream
#alias mutt='export LANG=ko_KR; mutt'
#run ~/.bashrc
alias runbash='. ~/.bashrc'
alias startx='startxwin -- -listen tcp &'
alias cv='echo $CYLC_VERSION'
alias tui='cylc tui $(basename $PWD)'
alias c7='export CYLC_VERSION=7.9.1'
alias c8='export CYLC_VERSION=8.2.1'
alias cylcvr='cylc vr --yes $(basename $PWD)'
alias sqs='sqsummary'