-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
67 lines (54 loc) · 1.2 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# functions
mcd() {
mkdir -p $1
cd $1
}
today() {
echo -n "Today's date is: "
date +"%A, %B %-d, %Y"
}
showOS(){
hostnamectl
}
# Easier navigation
alias ..="cd .."
alias cd..="cd .." # old DOS command correction
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
# about ls
alias lsl='ls -al'
alias dir='ls -al'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -ltrhA'
alias gl='ls|grep --color'
alias lss='ls -lhaF | grep ^l' # list Symbolic links
alias lsd='ls -lhaF | grep ^d' # list directories
alias lsf='ls -lhaF | grep ^-' # list files
alias lw="ls -a"
# about terminal
alias c='clear'
alias r='reset'
alias vi='nvim'
# others
alias brc='source ~/.bashrc' # reloads ~/.bashrc file
alias ghistory="history | grep"
alias port='netstat -tulanp'
alias listen="lsof -P -i -n"
alias ?='man' #haha
alias lc='locate'
alias f='file'
alias s='stat'
# deletes whats in the Downloads folders
alias clean='rm -rf ~/Downloads/*'
# Make some possibly destructive commands more interactive.
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
# Just for fun
alias hi='echo "Hello World"'
# Setting my bin to the path
export PATH="/home/carlton/bin:$PATH"
PROMPT_DIRTRIM=1