-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
33 lines (33 loc) · 643 Bytes
/
dot_zshrc
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
fastfetch
unsetopt share_history
tidy() {
case $1 in
*.sh)
shfmt -ci -sr -s -w "$1"
shellharden --replace "$1"
shellcheck "$1"
;;
*.py)
black "$1"
pylint "$1"
;;
*.h | *.c)
uncrustify -c /usr/share/doc/uncrustify/examples/linux.cfg --replace --no-backup "$1"
;;
*.json)
jq . "$1" | sponge "$1"
;;
*.txt)
sort -u "$1" | sponge "$1"
;;
esac
}
alias note='nvim note_$(date +"%Y%m%d_%H%M%S_%N").txt'
alias ls="/usr/bin/lsd --group-dirs first"
alias la="ls -la"
alias ll="ls -l"
alias lh="ls -hAl"
alias l="ls -l"
alias man="/usr/bin/batman"
alias diff="/usr/bin/batdiff"
alias cat="/usr/bin/bat"