mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
34 lines
725 B
Bash
34 lines
725 B
Bash
|
###############
|
||
|
### Aliases ###
|
||
|
###############
|
||
|
|
||
|
# some more ls aliases
|
||
|
alias ll='ls -hAtFl'
|
||
|
alias la='ls -hA'
|
||
|
alias l='ls -htFl'
|
||
|
|
||
|
# make cp and mv prompt before overwriting
|
||
|
alias cp='cp -i'
|
||
|
alias mv='mv -i'
|
||
|
|
||
|
# make mkdir tell us about each directory it has created
|
||
|
alias mkdir='mkdir -pv'
|
||
|
# make rm tell us about everything it's deleting
|
||
|
alias rm='rm -v'
|
||
|
# Make the permissions tweaking commands give us more information about what they are doing
|
||
|
alias chmod='chmod -v'
|
||
|
alias chown='chown -v'
|
||
|
alias chgrp='chgrp -v'
|
||
|
|
||
|
# show colours in less
|
||
|
alias less='less -R'
|
||
|
|
||
|
# Alias to clear the screen for real
|
||
|
alias cls='printf "\033c"'
|
||
|
|
||
|
# allow us to create a directory and immediately move into it
|
||
|
mkdird () {
|
||
|
mkdir -pv $1
|
||
|
cd $1
|
||
|
}
|