-
Notifications
You must be signed in to change notification settings - Fork 0
/
.alias
66 lines (53 loc) · 1.69 KB
/
.alias
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
#!/usr/bin/env bash
# shortcuts
alias :q='exit'
alias :!='exit'
# clusters
alias qsn='ssh newton "qstat"'
alias qsj='ssh jupiter "qstat"'
alias qsp='ssh pipeline "pueue"'
alias pq='pueue'
alias jupfree="ssh jupiter \"pbsnodes -aSj | grep -E '8\\/8|16\\/16' | sort -k1 | awk '{print \\\$1}'\""
alias qdelnew='ssh newton "qdel"'
alias qdeljup='ssh jupiter "qdel"'
# Enable aliases to be sudo’ed
alias sudo='sudo '
# system
alias update='sudo pacman -Syyu'
alias mkdir='mkdir -p'
alias reload='source ~/.zshrc'
# programs
alias ipy='ipython'
alias za='zellij attach `zellij ls -s | fzf` 2> /dev/null'
alias lg='lazygit'
alias cp='cp -r'
alias ged='gedent'
alias ggen='gedent gen `gedent template list | fzf` '
alias periodic-table='npx periodic-table-cli'
alias copy='xclip -selection clipboard'
# ledger alias
alias hled='hledger'
# lsd
alias l='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias lt='ls --tree'
#cargo
alias cargoclippy='cargo clippy --fix --allow-dirty --allow-staged -- -W clippy::pedantic -W clippy::nursery'
# git
alias g='git'
alias gf='git diff --name-only'
alias gac='g a . && g c "updates" && g ps'
#scripts environment
alias activatescripts='. ~/projects/scripts/.scripts_environment/bin/activate'
# connect phone bluetoothctl
alias muitagentenolab='echo "connect 74:2A:8A:A8:EC:9B" | bluetoothctl'
alias soosguri='echo "disconnect "74:2A:8A:A8:EC:9B" | bluetoothctl'
# orca stuff
alias energy='grep -i "final gibbs free energy" **/*.out'
alias imfreq='grep -i "imaginary mode" **/*.out'
alias geomcyclep='grep -i "geometry optimization cycle" **/*.out'
alias scanprogress='grep -i "RELAXED SURFACE SCAN STEP" **/*.out'
# other
alias cs='csync'
alias newsesh='zellij-sessionizer ~/projects'