-
Notifications
You must be signed in to change notification settings - Fork 2
/
aliases
41 lines (31 loc) · 1.07 KB
/
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
alias mkdir="mkdir -p"
# Pretty print the path
alias path='echo $PATH | tr -s ":" "\n"'
alias grep="grep --color=auto"
# Use neovim if available over vim
if command -v nvim >/dev/null 2>&1; then
alias vim="nvim"
fi
# Alias raw man to colorman function
alias man="colorman"
# Reload zshrc like a rails console
alias reload!=". ~/.zshrc"
# Alias ls to something better
if command -v eza >/dev/null 2>&1; then
alias ls="eza -h --color=auto --group-directories-first"
fi
# A better cat
if command -v bat >/dev/null 2>&1; then
alias cat="bat"
fi
# Updating neovim with asdf
alias asdf-update-nvim-stable="asdf uninstall neovim stable && asdf install neovim stable"
alias asdf-update-nvim-nightly="asdf uninstall neovim nightly && asdf install neovim nightly"
alias asdf-update-nvim-master="asdf uninstall neovim ref:master && asdf install neovim ref:master"
# Lists files (including dot files) sorted by size (biggest last) in long and
# human readable output format.
alias dir="ls -lSrah"
# Include custom aliases
if [[ -f ~/.aliases.local ]]; then
source ~/.aliases.local
fi