Update prompt

This commit is contained in:
Alex Manning 2022-01-04 11:18:28 +00:00
parent 951d0422f4
commit d65c7fbdda
5 changed files with 4 additions and 64 deletions

View file

@ -1,58 +0,0 @@
# If not running interactively, don't do anything else
[[ $- != *i* ]] && return
# Color mapping
grey='\[\033[1;30m\]'
red='\[\033[0;31m\]'
RED='\[\033[1;31m\]'
green='\[\033[0;32m\]'
GREEN='\[\033[1;32m\]'
yellow='\[\033[0;33m\]'
YELLOW='\[\033[1;33m\]'
purple='\[\033[0;35m\]'
PURPLE='\[\033[1;35m\]'
white='\[\033[0;37m\]'
WHITE='\[\033[1;37m\]'
blue='\[\033[0;34m\]'
BLUE='\[\033[1;34m\]'
cyan='\[\033[0;36m\]'
CYAN='\[\033[1;36m\]'
NC='\[\033[0m\]'
#Default colors.
c1=$GREEN
c2=$BLUE
trail='\$'
pre=''
# RED if logged in as root.
if [ "$EUID" -eq 0 ]
then
c1=$RED
trail='#'
# Toolbox
elif [ -f /run/.containerenv ] && [ -f /run/.toolboxenv ]
then
trail='🔧'
c1=$YELLOW
else
# Per-machine colors.
case `hostname -s` in
polaris)
c1=$BLUE
c2=$CYAN
;;
arcadia)
c1=$CYAN
c2=$GREEN
;;
vesta)
trail=🍓
;;
rukbat)
trail=🍓
;;
esac
fi
export PS1="${pre}${c1}\u@\h${NC} ${c2}\w ${trail}${NC} "

1
home/.bash_profile.d/prompt Symbolic link
View file

@ -0,0 +1 @@
../../private/home/.bash_profile.d/prompt

View file

@ -1,5 +0,0 @@
# If not running interactively, don't do anything else
[[ $- != *i* ]] && return
export PS1='\[\033[01;31m\]\u@\h\[\033[00m\] \[\033[01;32m\]\w #\[\033[00m\] '

View file

@ -1,2 +1,3 @@
[mypy]
strict = True
ignore_missing_imports = True

View file

@ -27,6 +27,7 @@ let g:ale_fixers = {
\ 'scss': ['prettier'],
\ 'rust': ['rustfmt'],
\ 'javascript' : ['eslint'],
\ 'javascriptreact' : ['eslint'],
\ 'typescript': ['eslint'],
\ 'vue': ['eslint'],
\ 'json' :['jq'],

@ -1 +1 @@
Subproject commit 44d28f2c08fac7ed765fd6cc4b6c91a9fedd4fee
Subproject commit 0cbd255efc13b917dcc904495aca0ea80735d275