~/.bashrc
alias src='source ~/.bashrc' #src: Reload .bashrc file
alias cat='bat '
# Aliases for software managment
# pacman or pm
alias pacman='sudo pacman --color auto'
alias update='sudo pacman -Syyu'
alias install='sudo pacman -S '
#Recent Installed Packages
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"
alias riplong="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -3000 | nl"
#Cleanup orphaned packages
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)'
# # extract = EXtractor for all kinds of archives
# # usage: extract <file>
extract ()
{
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1;;
*.7z) 7z x $1 ;;
*.deb) ar x $1 ;;
*.tar.xz) tar xf $1 ;;
*.tar.zst) tar xf $1 ;;
*) echo "'$1' cannot be extracted via ex()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
# Directory Listing aliases
alias dir='ls -hFx'
alias l.='ls -d .* --color=tty' # short listing, only hidden files - .*
alias l='ls -lathF' # long, sort by newest to oldest
alias L='ls -latrhF' # long, sort by oldest to newest
alias la='ls -Al' # show hidden files
alias lc='ls -lcr' # sort by change time
alias lk='ls -lSr' # sort by size
alias lh='ls -lSrh' # sort by size human readable
alias lm='ls -al | more' # pipe through 'more'
alias lo='ls -laSFh' # sort by size largest to smallest
alias lr='ls -lR' # recursive ls
alias lt='ls -ltr' # sort by date
alias lu='ls -lur' # sort by access time
# lr: Full Recursive Directory Listing
# ------------------------------------------
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
alias dud='du -d 1 -h' # Short and human-readable file listing
alias duf='du -sh *' # Short and human-readable directory listing
~/.vimrc:
syntax on
set number
set linebreak
set showbreak=+++
set textwidth=100
set showmatch
set visualbell
set virtualedit=onemore
set hlsearch
set smartcase
set ignorecase
set incsearch
set cursorline
set autoindent
set expandtab
set shiftwidth=2
set smartindent
set smarttab
set softtabstop=2
set tabstop=2
set ruler
set undolevels=1000
set backspace=indent,eol,start