Add some useful aliases and functions

cdls, mkdirr, cdh, lisah
pull/1322/head
Jus de Patate 2019-02-04 11:39:32 +01:00 committed by GitHub
parent 71ee7083cf
commit c35361f3b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -15,9 +15,14 @@ alias la='ls -AF' # Compact view, show hidden
alias ll='ls -al'
alias l='ls -a'
alias l1='ls -1'
alias lisah='ls -lisah --color=auto'
alias _="sudo"
function mkdirr() {
mkdir $1 && cd $1 && ls
}
# Shortcuts to edit startup files
alias vbrc="vim ~/.bashrc"
alias vbpf="vim ~/.bash_profile"
@ -57,11 +62,16 @@ alias ipy='ipython'
alias piano='pianobar'
alias ..='cd ..' # Go up one directory
alias cdh='cd ~/' # Go in home
alias cd..='cd ..' # Common misspelling for going up one directory
alias ...='cd ../..' # Go up two directories
alias ....='cd ../../..' # Go up three directories
alias -- -='cd -' # Go back
function cdls() {
cd $1 && ls
}
# Shell History
alias h='history'