-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
50 lines (38 loc) · 1.15 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
# enable color support of ls and also add handy aliases
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# some more ls aliases
alias ll='ls -lh'
alias la='ls -lAh'
alias l='ls -CF'
# some conveniences
alias su='su -l'
alias cal='ncal -b'
alias less='less -icRn'
alias info='info --vi-keys'
# use gpg2
alias gpg='gpg2'
# neovim coloring doesn't seem to work well on tty
if [ "$TERM" = "linux" ]; then
alias vi='vim'
fi
# transform symlinks when using sshfs
alias sshfs='sshfs -o transform_symlinks'
# alias for weather forecasts
alias weather='curl --cacert ~/.local/share/ca-certificates/wttr.crt "https://wttr.in/Gent"'
# use pager for output
alias ag='ag --pager "less -iRFX"'
alias mysql='mysql --pager="less -iSFX"'
# give diff some color
alias diff='colordiff'
# batchvtest
alias batchvtest='find -iname "*.mpg" -exec vtest "{}" ";"'
# pipe-listener
alias pipe-listener='pipe-viewer -n --resolution=audio'
# gcalcli
alias gcalm='gcalcli calm --monday'
alias gagenda='gcalcli --lineart=ascii agenda --details=all| less'