forked from TomNeyland-FD/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.aliases
22 lines (20 loc) · 1.28 KB
/
.aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -------------------------------
# ALIASES
# -------------------------------
alias la="ls -a"
alias l="ls -aG"
alias cp='cp -iv' # Preferred 'cp' implementation
cd() { builtin cd "$@"; l; } # Always list directory contents upon 'cd'
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 edit='sublime' # edit: Opens any file in sublime editor
alias ~="cd ~" # ~: Go Home
alias c='clear' # c: Clear terminal display
alias cic='set completion-ignore-case On' # cic: Make tab-completion case-insensitive
mcd () { mkdir -p "$1" && cd "$1"; } # mcd: Makes new Dir and jumps inside
alias refresh='source ~/.bash_profile' # reload the bash profile