Last active
November 8, 2024 13:01
-
-
Save brainfucksec/dbe82148ddd055eff9dd811c4584ffa6 to your computer and use it in GitHub Desktop.
Revisions
-
brainfucksec revised this gist
Jun 30, 2022 . 1 changed file with 24 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,19 +3,22 @@ # Termux bash.bashrc # by brainf+ck # # Last modified: 2022/06/30 # ###################################### #### Global ########################## # `grep default` highlight color export GREP_COLOR="1;32" # EDITOR export EDITOR="nvim" export SUDO_EDITOR="nvim" export VISUAL="nvim" # Colored man export MANPAGER="less -R --use-color -Dd+g -Du+b" #### History settings ################ @@ -47,10 +50,9 @@ shopt -s autocd fake_user="elliot" PS1='\[\033[0;32m\]┌──(\[\033[1;34m\]${fake_user}@\h\[\033[0;32m\])-[\[\033[0;1m\]\w\[\033[0;32m\]] \[\033[0;32m\]└─\[\033[1;34m\]\$\[\033[0m\] ' #### Aliases ######################### # enable color support of ls, grep and ip, also add handy aliases @@ -82,7 +84,7 @@ alias cpp='rsync -ahW --info=progress2' alias cs='printf "\033c"' alias q='exit' # memory/CPU alias df='df -Tha --total' alias free='free -mt' alias ps='ps auxf' @@ -94,6 +96,16 @@ alias myip='curl -s -m 5 https://ipleak.net/json/' alias e='nvim' alias w3m='w3m https://duckduckgo.com' #### Functions ###################### # If user has entered command which invokes non-available # utility, command-not-found will give a package suggestions. if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then command_not_found_handle() { /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1" } fi # nnn "cd on quit" n() { -
brainfucksec revised this gist
May 1, 2022 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ # Termux bash.bashrc # by brainf+ck # # Last modified: 2022/05/01 # ###################################### @@ -45,8 +45,10 @@ shopt -s autocd #### Prompt ########################## fake_user="elliot" PS1='\[\033[0;32m\]┌──(\[\033[1;34m\]elliot@\h\[\033[0;32m\])-[\[\033[0;1m\]\w\[\033[0;32m\]] \[\033[0;32m\]└─\[\033[1;34m\]\$\[\033[0m\] ' #### Aliases ######################### -
brainfucksec revised this gist
Apr 12, 2022 . 1 changed file with 8 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ # Termux bash.bashrc # by brainf+ck # # Last modified: 2022/04/12 # ###################################### @@ -43,7 +43,13 @@ shopt -s extglob # cd when entering just a path shopt -s autocd #### Prompt ########################## PS1='\[\033[1;32m\]┌──(\[\033[1;34m\]elliot@\h\[\033[1;32m\])-[\[\033[0;1m\]\w\[\033[1;32m\]] \[\033[1;32m\]└─\[\033[1;34m\]\$\[\033[0m\] ' #### Aliases ######################### # enable color support of ls, grep and ip, also add handy aliases if [[ -x /usr/bin/dircolors ]]; then @@ -54,13 +60,6 @@ if [[ -x /usr/bin/dircolors ]]; then alias ip='ip -color' fi # common commands alias ..='cd ..' alias ...='cd ../..' -
brainfucksec revised this gist
Apr 12, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if [[ -x /usr/bin/dircolors ]]; then fi #### Prompt ########################## PS1='┌──(\[\033[01;32m\]elliot\[\033[00m\])──(\[\033[01;32m\]\h\[\033[00m\]) \[\033[01;34m\][\w]\[\033[00m\] └─\[\033[01;32m\]\$\[\033[00m\] ' -
brainfucksec revised this gist
Apr 12, 2022 . No changes.There are no files selected for viewing
-
brainfucksec revised this gist
Apr 12, 2022 . 1 changed file with 30 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -92,3 +92,33 @@ alias cputemp='sensors | grep Core' alias myip='curl -s -m 5 https://ipleak.net/json/' alias e='nvim' alias w3m='w3m https://duckduckgo.com' # nnn "cd on quit" n() { # Block nesting of nnn in subshells if [ -n $NNNVL ] && [ "${NNNVL:-0}" -ge 1 ]; then echo "nnn is already running" return fi # The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set) # If NNN_TMPFILE is set to a custom path, it must be exported for nnn to # see. To cd on quit only on ^G, remove the "export" and make sure not to # use a custom path, i.e. set NNN_TMPFILE *exactly* as follows: # NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn # stty start undef # stty stop undef # stty lwrap undef # stty lnext undef nnn "$@" if [ -f "$NNN_TMPFILE" ]; then . "$NNN_TMPFILE" rm -f "$NNN_TMPFILE" > /dev/null fi } -
brainfucksec revised this gist
Apr 11, 2022 . 1 changed file with 3 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -45,30 +45,19 @@ shopt -s autocd #### Colors ########################## # enable color support of ls, grep and ip, also add handy aliases if [[ -x /usr/bin/dircolors ]]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias diff='diff --color=auto' alias ip='ip -color' fi #### Prompt ########################## PROMPT_DIRTRIM=2 PS1='┌──(\[\033[01;32m\]elliot\[\033[00m\])──(\[\033[01;32m\]\h\[\033[00m\]) \[\033[01;34m\][\w]\[\033[00m\] └─\[\033[01;32m\]\$\[\033[00m\] ' #### Aliases ######################### -
brainfucksec revised this gist
Apr 11, 2022 . 1 changed file with 23 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,13 @@ ###################################### # # Termux bash.bashrc # by brainf+ck # # Last modified: 2022/04/11 # ###################################### #### Handles nonexistent commands #### # If user has entered command which invokes non-available # utility, command-not-found will give a package suggestions. @@ -17,7 +17,7 @@ if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then } fi #### History settings ################ # append to the history file, don't overwrite it shopt -s histappend @@ -32,8 +32,7 @@ HISTCONTROL=ignoreboth HISTSIZE=1000 HISTFILESIZE=2000 #### Autocompletion ################## # cycle through all matches with 'TAB' key bind 'TAB:menu-complete' @@ -44,26 +43,34 @@ shopt -s extglob # cd when entering just a path shopt -s autocd #### Colors ########################## # set colors export red="\e[1;31m]" export green="\e[1;32m]" export yellow="\e[1;33m]" export blue="\e[1;34m]" export magenta="\e[1;35m]" export cyan="\e[1;36m]" export white="\e[1;37m]" export reset="\e[0m\]" # enable color support of ls, grep and ip, also add handy aliases if [[ -x /usr/bin/dircolors ]]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias diff='diff --color=auto' alias ip='ip -color' fi #### Prompt ########################## PROMPT_DIRTRIM=2 PS1='┌──(\[${green}\]elliot\[${reset}\])──(\[${green}\]\h\[${reset}\]) \[${blue}\][\w]\[${reset}\] └─\[${green}\$\[${reset}\] ' #### Aliases ######################### # common commands alias ..='cd ..' @@ -81,7 +88,6 @@ alias mkdir='mkdir -p -v' alias cp='cp --preserve=all' alias cpv='cp --preserve=all -v' alias cpr='cp --preserve=all -R' alias cpp='rsync -ahW --info=progress2' alias cs='printf "\033c"' alias q='exit' @@ -94,6 +100,6 @@ alias ht='htop' alias cputemp='sensors | grep Core' # applications shortcuts alias myip='curl -s -m 5 https://ipleak.net/json/' alias e='nvim' alias w3m='w3m https://duckduckgo.com' -
brainfucksec revised this gist
Apr 9, 2022 . 1 changed file with 27 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,23 @@ ################################# # # Termux .bashrc (bash.bashrc) # by brainf+ck # # Last modified: 2022/04/09 # ################################# ### Handles nonexistent commands ### # If user has entered command which invokes non-available # utility, command-not-found will give a package suggestions. if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then command_not_found_handle() { /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1" } fi ### History settings ### # append to the history file, don't overwrite it shopt -s histappend @@ -20,7 +32,8 @@ HISTCONTROL=ignoreboth HISTSIZE=1000 HISTFILESIZE=2000 ### Autocompletion ### # cycle through all matches with 'TAB' key bind 'TAB:menu-complete' @@ -32,7 +45,7 @@ shopt -s extglob shopt -s autocd ### Colors ### # enable color support of ls, grep and ip, also add handy aliases if [[ -x /usr/bin/dircolors ]]; then @@ -44,23 +57,13 @@ if [[ -x /usr/bin/dircolors ]]; then fi ### Prompt ### PROMPT_DIRTRIM=2 PS1='┌─\[\e[1;32m\][user1]\[\e[0m\] \[\e[1;34m\][\w]\[\e[0m\] └─\[\e[1;32m\]\$\[\e[0m\] ' ### Aliases ### # common commands alias ..='cd ..' @@ -78,7 +81,7 @@ alias mkdir='mkdir -p -v' alias cp='cp --preserve=all' alias cpv='cp --preserve=all -v' alias cpr='cp --preserve=all -R' alias rmi='rm -iv' alias cpp='rsync -ahW --info=progress2' alias cs='printf "\033c"' alias q='exit' @@ -89,3 +92,8 @@ alias free='free -mt' alias ps='ps auxf' alias ht='htop' alias cputemp='sensors | grep Core' # applications shortcuts alias myip='curl -s https://ipleak.net/json/' alias e='nvim' alias w3m='w3m https://duckduckgo.com' -
brainfucksec renamed this gist
Jan 15, 2022 . 1 changed file with 49 additions and 43 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,69 +1,68 @@ # # Termux .bashrc (bash.bashrc) # by brainf+ck # # Last modified: 2022/01/15 # ## History settings ## # append to the history file, don't overwrite it shopt -s histappend # load results of history substitution into the readline editing buffer shopt -s histverify # don't put duplicate lines or lines starting with space in the history HISTCONTROL=ignoreboth # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 ## Autocompletion ## # cycle through all matches with 'TAB' key bind 'TAB:menu-complete' # necessary for programmable completion shopt -s extglob # cd when entering just a path shopt -s autocd ## Colors ## # enable color support of ls, grep and ip, also add handy aliases if [[ -x /usr/bin/dircolors ]]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias diff='diff --color=auto' alias ip='ip -color' fi ## Prompt ## PROMPT_DIRTRIM=2 PS1='\[\e[0;32m\]\w\[\e[0m\] \[\e[0;97m\]\$\[\e[0m\] ' ## Handles nonexistent commands ## # If user has entered command which invokes non-available # utility, command-not-found will give a package suggestions. if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then command_not_found_handle() { /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1" } fi ## Aliases ## # common commands alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' @@ -82,4 +81,11 @@ alias cpr='cp --preserve=all -R' alias rmi='rm -i' alias cpp='rsync -ahW --info=progress2' alias cs='printf "\033c"' alias q='exit' # memory/cpu alias df='df -Tha --total' alias free='free -mt' alias ps='ps auxf' alias ht='htop' alias cputemp='sensors | grep Core' -
brainfucksec revised this gist
Nov 4, 2021 . No changes.There are no files selected for viewing
-
brainfucksec revised this gist
Nov 4, 2021 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -61,8 +61,7 @@ if [[ -x /usr/bin/dircolors ]]; then fi # Default prompt PS1='\S ' # Aliases alias ..='cd ..' -
brainfucksec revised this gist
Apr 9, 2021 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -64,7 +64,6 @@ fi #PS1='\S ' PS1='\[${b}${usercolor}\]λ\[${reset}\] \[${b}${blue}[\w]\[${reset}\] \[${b}${usercolor}\]\$\[${reset}\] ' # Aliases alias ..='cd ..' alias ...='cd ../..' -
brainfucksec revised this gist
Apr 9, 2021 . No changes.There are no files selected for viewing
-
brainfucksec revised this gist
Apr 9, 2021 . 1 changed file with 32 additions and 21 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,10 @@ ################################################# # # Termux $HOME/.bashrc FILE # By Brainfuck # # Last modified: Fri Apr 9 05:42:26 PM UTC 2021 ################################################# # Handle commands not found if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then @@ -10,6 +13,8 @@ if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then } fi # History settings # # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth @@ -21,16 +26,24 @@ shopt -s histappend HISTSIZE=1000 HISTFILESIZE=2000 # Autocompletion # # cycle through all matches with 'TAB' key bind 'TAB:menu-complete' shopt -s extglob # necessary for programmable completion shopt -s autocd # cd when entering just a path in the shell # Color definitions export red="$(tput setaf 1)" export green="$(tput setaf 2)" export yellow="$(tput setaf 3)" export blue="$(tput setaf 4)" export magenta="$(tput setaf 5)" export cyan="$(tput setaf 6)" export white="$(tput setaf 7)" export b="$(tput bold)" export reset="$(tput sgr0)" # set color for current user if [[ "$UID" -eq 0 ]]; then @@ -39,22 +52,20 @@ else usercolor="${green}" fi # enable color support of ls, grep and ip, also add handy aliases if [[ -x /usr/bin/dircolors ]]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias ip='ip -color' fi # Default prompt #PS1='\S ' PS1='\[${b}${usercolor}\]λ\[${reset}\] \[${b}${blue}[\w]\[${reset}\] \[${b}${usercolor}\]\$\[${reset}\] ' # Aliases alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' -
brainfucksec revised this gist
Mar 29, 2021 . 1 changed file with 9 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # Termux $HOME/.bashrc FILE # By Brainfuck # # Last modified: Mon Mar 29 09:01:07 PM UTC 2021 # Handle commands not found if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then @@ -40,7 +40,7 @@ else fi #PS1='\$ ' PS1='\[${usercolor}\]λ\[${endc}\] \[${blue}\w\[${endc}\] \[${usercolor}\]\$\[${endc}\] ' ## Colors # grep default highlight color @@ -49,27 +49,28 @@ export GREP_COLOR="1;32" # enable color support of ls, grep and ip and also add handy aliases if [[ -x /usr/bin/dircolors ]]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias ip='ip -color' fi ## Alias definitions alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias .....='cd ../../../..' alias lm='ls | more' alias ll='ls -lFh' alias la='ls -alFh --group-directories-first' alias l1='ls -1F --group-directories-first' alias l1m='ls -1F --group-directories-first | more' alias lh='ls -ld .??*' alias lsn='ls | cat -n' alias mkdir='mkdir -p -v' alias cp='cp --preserve=all' alias cpv='cp --preserve=all -v' alias cpr='cp --preserve=all -R' alias rmi='rm -i' alias cpp='rsync -ahW --info=progress2' alias cs='printf "\033c"' alias src='source ~/.bashrc' -
brainfucksec revised this gist
Sep 16, 2020 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # Termux $HOME/.bashrc FILE # By Brainfuck # # Last modified: Wed Sep 16 06:56:59 PM CEST 2020 # Handle commands not found if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then @@ -10,6 +10,17 @@ if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then } fi # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 ## Default prompt # define colors export red=$'\e[1;31m' -
brainfucksec revised this gist
Aug 16, 2020 . 1 changed file with 3 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,7 @@ # Termux $HOME/.bashrc FILE # By Brainfuck # # Last modified: Sun Aug 16 11:34:34 CEST 2020 # Handle commands not found if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then @@ -47,11 +35,12 @@ PS1='\[${usercolor}\]λ\[${endc}\] \[${blue}\w\[${endc}\] \[${usercolor}\]>\[${e # grep default highlight color export GREP_COLOR="1;32" # enable color support of ls, grep and ip and also add handy aliases if [[ -x /usr/bin/dircolors ]]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias ip='ip -color=auto' fi ## Alias definitions -
brainfucksec created this gist
May 26, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,75 @@ # Termux $HOME/.bashrc FILE # By Brainfuck # # Last modified: Fri May 22 17:06:13 CEST 2020 # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # Handle commands not found if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then command_not_found_handle() { /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1" } fi ## Default prompt # define colors export red=$'\e[1;31m' export green=$'\e[1;32m' export yellow=$'\e[1;33m' export blue=$'\e[1;34m' export purple=$'\e[1;33m' export cyan=$'\e[1;35m' export white=$'\e[1;37m' export endc=$'\e[0m' # set color for current user if [[ "$UID" -eq 0 ]]; then usercolor="${red}" else usercolor="${green}" fi #PS1='\$ ' PS1='\[${usercolor}\]λ\[${endc}\] \[${blue}\w\[${endc}\] \[${usercolor}\]>\[${endc}\] ' ## Colors # grep default highlight color export GREP_COLOR="1;32" # enable color support of ls and grep and also add handy aliases if [[ -x /usr/bin/dircolors ]]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' fi ## Alias definitions alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias .....='cd ../../../..' alias ll='ls -lFh' alias la='ls -alFh' alias l1='ls -1F --group-directories-first' alias lh='ls -ld .??*' alias l1m='ls -1 | more' alias lm='ls | more' alias lsn='ls | cat -n' alias mkdir='mkdir -p -v' alias cp='cp --preserve=all' alias cpv='cp --preserve=all -v' alias cpr='cp --preserve=all -R' alias cpp='rsync -ahv --info=progress2' alias cs='printf "\033c"' alias src='source ~/.bashrc'