-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_alias
46 lines (32 loc) · 1.1 KB
/
dot_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
#alias v='f -e vim' # quick opening files with vim
#alias v='f -t -e vim -b viminfo'
alias o='a -e xdg-open' # quick opening files with xdg-open
alias cat='bat'
alias sg="sk --ansi -i -c 'rg --color=always --line-number \"{}\"' --delimiter ':' --preview 'bat --color always -H {2} {1}'"
alias sf="sk --ansi -i --delimiter ':' --preview 'bat --color always -H {2} {1}'"
#alias gt='git town'
alias ls='exa -F'
alias l='exa -lhF --git --time-style iso -snew'
alias ll='l -a'
alias ps='procs'
alias tig='gitui'
alias m='less'
alias j='jobs'
# find in history
alias hg='fc -l 0|grep'
# global aliases (do not need to be at the beginning of the command line)
alias -g H='| head'
alias -g T='| tail'
alias -g G='| grep'
alias -g L="| less"
alias -g M="| more"
alias -g X='| xclip -selection clipboard'
alias -g LL="2>&1 | less"
alias -g NE="2> /dev/null"
alias -g NUL="> /dev/null 2>&1"
alias npm='pnpm'
alias ua-update-all='sudo true; \
rate-mirrors --entry-country FR --protocol https arch --max-delay 21600 | sudo tee /etc/pacman.d/mirrorlist \
&& paccache -r \
&& paru -Sc --aur --noconfirm \
&& paru -Syyu'