Skip to content

Instantly share code, notes, and snippets.

@darkarnium
Last active April 29, 2022 11:41
Show Gist options
  • Save darkarnium/3839595aa2f913cc9e438affd32332d5 to your computer and use it in GitHub Desktop.
Save darkarnium/3839595aa2f913cc9e438affd32332d5 to your computer and use it in GitHub Desktop.
Bash setup
export PS1='\[\033[38;5;7m\][\[\]\[\033[38;5;2m\]\u\[\]\[\033[38;5;7m\]::\[\]\[\033[38;5;2m\]\h\[\]\[\033[38;5;7m\] \[\]\[\033[38;5;33m\]\W\[\]\[\033[38;5;7m\]][\[\]\[\033[38;5;202m\]$?\[\]\[\033[38;5;7m\]]\$ \[\]'
export HISTSIZE=
export HISTFILESIZE=
export HISTTIMEFORMAT="%y-%m-%d %T :: "
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
export PYTHONSTARTUP=$HOME/.pythonrc.py
try:
import readline
except ImportError:
print("Module readline not available.")
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment