-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.aliases
44 lines (33 loc) · 922 Bytes
/
.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
# GNU ls color
ls --color=auto > /dev/null 2>&1 && alias ls='ls --color=auto'
# Only some grep supports `--color=auto'
if echo x | grep --color=auto x >/dev/null 2>&1; then
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias ll='ls -halF'
alias la='ls -A'
alias l='ls -CF'
alias lt='ls -t'
alias lS='ls -S'
alias df='df -h'
alias du='du -h'
{ if ! command -v open; then
command -v xdg-open && alias open='xdg-open'
command -v explorer.exe && alias open='explorer.exe'
fi } >/dev/null
{ if command -v nvim; then
alias nv='nvim'
fi } >/dev/null
{ if command -v powershell.exe; then
alias win='powershell.exe'
fi } >/dev/null
command -v free > /dev/null && \
alias free='free -h'
alias ..='cd ..'
alias e='f -e vim'
alias v='f -t -e vim -b viminfo'
alias o='f -e open'
[ -s "$HOME/.aliases.local" ] && . "$HOME/.aliases.local"
# vim: se ft=sh: