-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
60 lines (58 loc) · 1.83 KB
/
.bash_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
#!/bin/bash
#
# ~/.bash_aliases
#
if $(type exa &>/dev/null) ; then
alias ls='exa -l --group-directories-first --color=always --git'
alias tree='exa -l --group-directories-first --color=always --git --tree'
else
alias ls='ls -lvh --group-directories-first --color=always'
alias tree='tree -C'
fi
alias less='less -Rr'
alias clc='clear'
alias qq='exit'
alias aursearch='aurget -Ss'
alias aurinst='aurget -Sy --deps --noedit --noconfirm'
alias aurbuild='aurget -Sb --deps --noedit --noconfirm --nodiscard'
alias aurupgr='aurget -Syu --deps --noedit --noconfirm'
alias ksp='$STEAM/Kerbal\ Space\ Program/KSP.x86_64'
alias cd..='cd ..'
alias pamcan='pacman'
if $(type yay &>/dev/null) ; then
alias upgrade='yay -Syu --noconfirm'
else
alias upgrade='sudo pacman -Syu; aurupgr'
fi
alias update='upgrade'
alias noblank='xset s off -dpms; xset s noblank'
alias sudo='sudo '
alias spclient='ncmpcpp -p 6601'
alias todo='todo.sh'
alias t='todo.sh'
alias plz='sudo $(fc -ln -1)'
alias dd='dd status=progress'
alias kc='kubectl'
if $(type nvim &>/dev/null) ; then
alias vim='nvim'
alias vimdiff='nvim -d'
alias vimwiki='nvim -c "VimwikiIndex"'
alias today='nvim -c "VimwikiMakeDiaryNote"'
alias vw='vimwiki'
alias vwt='today'
alias vwi='nvim -c "VimwikiDiaryIndex"'
else
alias vimwiki='vim -c "VimwikiIndex"'
alias vw='vimwiki'
fi
if $(type bat &>/dev/null) ; then
alias cat='bat'
fi
# from https://salferrarello.com/improve-git-log/
alias gl='git log --graph --pretty=format:"%h - %d %s (%cr) <%an>" | vim -R \
-c "set hidden nowrap keywordprg=:enew\ \|\ terminal\ \git\ --no-pager\ show |
nnoremap q :bd!<cr>" -'
alias pacnews='curl -s https://www.archlinux.org/feeds/news/ |\
xmllint --xpath //item/title\ \|\ //item/pubDate /dev/stdin |\
sed -r -e "s:<title>([^<]*?)</title><pubDate>([^<]*?)</pubDate>:\2\t\1\n:g" |\
colout "^.*$" 002'