Skip to content

Instantly share code, notes, and snippets.

@inspector71
Last active March 29, 2023 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inspector71/59e559824edfead1b0d3366ce402a687 to your computer and use it in GitHub Desktop.
Save inspector71/59e559824edfead1b0d3366ce402a687 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
alias unrar="unrar e -r *.rar"
# Find string within files
alias fs="/usr/bin/find . -type f -print|xargs grep -n "
# Find file by name
alias ff="/usr/bin/find . -name "
alias less='less -R '
export LS='LC_COLLATE=en_us.utf8 ls '
# Human Exclude . .. Trailing /
export LS_OPTIONS='-l --color=auto --group-directories-first -h -A -p'
# Human Exclude . .. Trailing /
#export LS_OPTIONS_BOX=' -h -A -p'
#export LS_OPTIONS_GNU=' --human-readable --almost-all -indicator-style=slash'
#alias lbusy="$LS $LS_OPTIONS $LS_OPTIONS_BOX"
#alias lbash="$LS $LS_OPTIONS $LS_OPTIONS_GNU"
alias l="$LS $LS_OPTIONS"
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias grep='grep --color=auto'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment