Skip to content

Instantly share code, notes, and snippets.

############################################################
# aliases
############################################################
alias ls='ls --color=auto'
alias l='ls -CF'
alias la='ls -a'
alias ll='ls -lkh'
alias lla='ll -a'
alias lrt='ll -rt'
alias lrta='lrt -a'
#!/bin/bash
############################################################
# init helpers
############################################################
# helper to source file if it exists and is not zero in size
function source_if_exists() {
for arg in $@; do
if [[ -s $arg ]]; then
if_debug_echo $arg
source $arg