Compare commits

...
2 Commits
Author SHA1 Message Date
me 132ae721e7 Add custom PS1 settings. 2026-03-28 11:28:29 -07:00
me d25e94d267 Add tput to Termux environment for changing PS1 colors. 2026-03-28 11:28:12 -07:00
2 changed files with 23 additions and 1 deletions

No files matched your search

+22
View File
@@ -1,11 +1,33 @@
# 2024-02-10 Hyperling
## Environment Setup ##
export PATH="~/bin:$PATH"
if [[ -e ~/.env ]]; then
source ~/.env
fi
# PS1
PURPLE=`tput setaf 5`
ORANGE=`tput setaf 214`
GREEN=`tput setaf 2`
RED=`tput setaf 9`
SCARLET=`tput setaf 1`
YELLOW=`tput setaf 226` # 11 does not seem to work
GRAY=`tput setaf 8`
RESET=`tput sgr0`
BOLD=`tput bold`
if [[ "`whoami`" == "root" ]]; then
export PS1="$BOLD$ORANGE[$SCARLET\t $RED\w$ORANGE]$GRAY\\$ $RESET"
else
export PS1="$BOLD$PURPLE[$ORANGE\t $GREEN\w$PURPLE]$RESET\\$ "
fi
## Aliases ##
# Quickly log onto production server.
+1 -1
View File
@@ -40,7 +40,7 @@ if [[ $1 == "skip" ]]; then
else
echo -e "\n`date` - Install Software"
pkg install -y \
openssh tsu vim htop git cronie man zip \
openssh tsu vim htop git cronie man zip ncurses-utils \
nmap traceroute wget rsync \
ffmpeg imagemagick \
kotlin php nodejs python libllvm hugo