The Meowgorithm Dotfiles, Collectors’ Edition
# .bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
# Git
export GOPRIVATE="github.com/charmbracelet"
# Git prompt
git_prompt="/usr/share/git/git-prompt.sh"
if [ -f $git_prompt ]; then
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWSTASHSTATE=true
source $git_prompt
fi
function nixPrompt() {
case $IN_NIX_SHELL in
pure)
printf ' <nix>'
;;
impure)
printf ' <nix*>'
;;
*)
printf ''
;;
esac
}
function prompt_func() {
red='\[\e[0;31m\]'
green='\[\e[0;32m\]'
yellow='\[\e[0;33m\]'
blue='\[\e[0;34m\]'
purple='\[\e[0;35m\]'