Last active
March 29, 2023 12:51
-
-
Save inspector71/59e559824edfead1b0d3366ce402a687 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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