-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_aliases.sh
23 lines (22 loc) · 1.41 KB
/
dot_aliases.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
alias ls="eza --color=always --icons=always"
alias cp="cp -iv" # Preferred "cp" implementation
alias mv="mv -iv" # Preferred "mv" implementation
alias mkdir="mkdir -pv" # Preferred "mkdir" implementatio
alias cd..="cd ../" # Go back 1 directory level (for fast typers)
alias ..="cd ../" # Go back 1 directory level
alias ...="cd ../../" # Go back 2 directory levels
alias .3="cd ../../../" # Go back 3 directory levels
alias .4="cd ../../../../" # Go back 4 directory levels
alias .5="cd ../../../../../" # Go back 5 directory levels
alias .6="cd ../../../../../../" # Go back 6 directory levels
alias ~="cd ~" # ~: Go Home
alias c="clear" # c: Clear terminal display
alias path='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
alias qfind="find . -name " # qfind: Quickly search for file
alias du="ncdu --color dark -rr -x --exclude .git --exclude node_modules"
alias shortdate="date +%Y%m%d%H%M%S"
if [ "$(uname)" = "Darwin" ]; then
alias vi="mvim -v"
alias vim="mvim -v"
fi