-
Notifications
You must be signed in to change notification settings - Fork 297
/
bash_aliases
executable file
·47 lines (36 loc) · 1.12 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
#!/bin/bash
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias cd..="cd .."
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
alias cp="cp -iv"
# │└─ list copied files
# └─ prompt before overwriting an existing file
alias mkdir="mkdir -pv"
# │└─ list created directories
# └─ create intermediate directories
alias mv="mv -iv"
# │└─ list moved files
# └─ prompt before overwriting an existing file
alias rm="rm -rf --"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
alias :q="exit"
alias c="clear"
alias ch="history -c && > ~/.bash_history"
alias d="cd ~/Desktop"
alias e="vim --"
alias g="git"
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias ll="ls -l"
alias m="man"
alias map="xargs -n1"
alias n="npm"
alias p="cd ~/projects"
alias path='printf "%b\n" "${PATH//:/\\n}"'
alias q="exit"
alias t="tmux"
alias y="yarn"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Load OS specific configs.
. "$OS/bash_aliases"