Repository navigation
Expand file tree
/
Copy pathaliases
More file actions
executable file
·95 lines (85 loc) · 3.31 KB
/
Copy pathaliases
File metadata and controls
executable file
·95 lines (85 loc) · 3.31 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
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
# List files tracked in a Git repo
alias gitfilelist='git ls-tree -r master --name-only'
# Simple shortcut
alias l='ls -lrthF'
alias l='ls -lrthF --time-style="+%Y-%m-%d %H:%M:%S"'
# Simple shortcut
alias ll='ls -lhF'
# Simple shortcut
alias gcon='rose suite-gcontrol'
# Go to ~/roses
alias c='clear'
# Go to ~/roses
alias r='cd ~/roses'
# Alias log to 'rose suite-log'
alias log='rose suite-log'
# Alias cr to 'cd ~$USER/cylc-run'
alias cr='cd -P ~/cylc-run'
# Alias fdg to 'fcm diff -g &'
alias fdg='fcm diff -g &'
# Fixed: Wrapped in double quotes with dynamic execution via \$ so it tracks PWD changes
alias trig="cylc trigger \$(basename \"\$PWD\")"
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 tui="cylc tui \$(basename \"\$PWD\")"
alias cylcvr="cylc vr --yes \$(basename \"\$PWD\")"
alias pollhere="cylc poll \$(basename \"\$PWD\")/*//*/*"
alias cylcscan=' cylc scan -t rich --colour-blind --sort'
# 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'
# 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&'
# Update contents of directory every 2s
alias wtch='cd . ; watch "ls -ltaF"'
# Update contents of directory every 2s
alias wtchh='cd .; watch "ls -lthFa"'
alias wtch="watch -n 2 'ls -ltF --time-style=\"+%Y-%m-%d %H:%M:%S\"'"
alias wtchh="watch -n 2 'ls -ltaFh --time-style=\"+%Y-%m-%d %H:%M:%S\"'"
# Fixed to expand dynamically on call
alias here='basename "\$PWD"'
#clim01
alias clim01='ssh -AY w-clim01'
#cylc01
alias cylc01='ssh -AY w-cylc01'
#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 c7='export CYLC_VERSION=7.9.1'
alias c8='export CYLC_VERSION=8.2.1'
alias sqs='sqsummary'
alias watchh='watch '
alias puma-ui='PORT=6969; ssh -t -L ${PORT}:localhost:${PORT} puma2 "bash -l -c \"export CYLC_VERSION=8; fuser -k ${PORT}/tcp 2>/dev/null; sleep 1; cylc gui --no-browser --Application.log_level=WARN --port-retries=0 --port=${PORT}\""'
alias mcli='~/bin/mc'
alias 'pollhere=cylc poll $(basename $PWD)/*//*/*'
#physical location
alias 'pwd=pwd -P'
alias 'br=cd ~/branches'
export PS1='$(hostname -f)|\d|\t \D{%Z}|\W $ '