aliases/general: use single quotes as much as possible
parent
27bfc966ac
commit
12a734cb49
|
|
@ -2,7 +2,7 @@
|
||||||
about-alias 'general aliases'
|
about-alias 'general aliases'
|
||||||
|
|
||||||
if command ls --color -d . &> /dev/null; then
|
if command ls --color -d . &> /dev/null; then
|
||||||
alias ls="ls --color=auto"
|
alias ls='ls --color=auto'
|
||||||
# BSD `ls` doesn't need an argument (`-G`) when `$CLICOLOR` is set.
|
# BSD `ls` doesn't need an argument (`-G`) when `$CLICOLOR` is set.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -14,11 +14,11 @@ alias l='ls -a'
|
||||||
alias l1='ls -1'
|
alias l1='ls -1'
|
||||||
alias lf='ls -F'
|
alias lf='ls -F'
|
||||||
|
|
||||||
alias _="sudo"
|
alias _='sudo'
|
||||||
|
|
||||||
# Shortcuts to edit startup files
|
# Shortcuts to edit startup files
|
||||||
alias vbrc="${VISUAL:-vim} ~/.bashrc"
|
alias vbrc='${VISUAL:-vim} ~/.bashrc'
|
||||||
alias vbpf="${VISUAL:-vim} ~/.bash_profile"
|
alias vbpf='${VISUAL:-vim} ~/.bash_profile'
|
||||||
|
|
||||||
# colored grep
|
# colored grep
|
||||||
# Need to check an existing file for a pattern that will be found to ensure
|
# Need to check an existing file for a pattern that will be found to ensure
|
||||||
|
|
@ -70,11 +70,11 @@ alias md='mkdir -p'
|
||||||
alias rd='rmdir'
|
alias rd='rmdir'
|
||||||
|
|
||||||
# Shorten extract
|
# Shorten extract
|
||||||
alias xt="extract"
|
alias xt='extract'
|
||||||
|
|
||||||
# sudo editors
|
# sudo editors
|
||||||
alias svim="sudo ${VISUAL:-vim}"
|
alias svim='sudo ${VISUAL:-vim}'
|
||||||
alias snano="sudo nano"
|
alias snano='sudo nano'
|
||||||
|
|
||||||
# Display whatever file is regular file or folder
|
# Display whatever file is regular file or folder
|
||||||
function catt() {
|
function catt() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue