Skip to content

Instantly share code, notes, and snippets.

@ardasener
Created December 1, 2020 16:53
Show Gist options
  • Save ardasener/76c6dd4a2829d140ced117734b671adf to your computer and use it in GitHub Desktop.
Save ardasener/76c6dd4a2829d140ced117734b671adf to your computer and use it in GitHub Desktop.
Bash Config
#
# ~/.bashrc
#
# PROMPT
PS1="\e[1;32m-> \e[0m"
# ALIASES
alias ls='ls --color=auto'
alias ll='ls -lav --ignore=..' # show long listing of all except ".."
alias l='ls -lav --ignore=.?*' # show long listing but no hidden dotfiles except "."
# PATH
export PATH=$PATH:~/.local/bin
# Some stuff, I don't know what they do.
[[ "$(whoami)" = "root" ]] && return
[[ -z "$FUNCNEST" ]] && export FUNCNEST=100 # limits recursive functions, see 'man bash'
## Use the up and down arrow keys for finding a command in history
## (you can write some initial letters of the command first).
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment