quality of life, terminal server version
- cleanup is now opt-in instead of opt-out - added server parameter to deploy with a different terminal scheme
This commit is contained in:
parent
eed4d5b142
commit
8866dc5bec
13
bashrc_overrides/terminal_fancyfying_server
Normal file
13
bashrc_overrides/terminal_fancyfying_server
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
GIT_FUNCTIONS=true
|
||||||
|
|
||||||
|
# Spaced
|
||||||
|
#PS1="${LIGHTBLUE}[ ${LIGHTRED}\u ${LIGHTBLUE}@ ${LIGHTBROWN}$(hostname --fqdn) ${LIGHTBLUE}] ${LIGHTPURPLE}( ${GREEN}\w ${LIGHTPURPLE}) "
|
||||||
|
# Not spaced
|
||||||
|
PS1="${LIGHTBLUE}[${LIGHTRED}\u${LIGHTBLUE}@${LIGHTBROWN}$(hostname --fqdn)${LIGHTBLUE}]${LIGHTPURPLE}(${GREEN}\w${LIGHTPURPLE})"
|
||||||
|
|
||||||
|
if [ $GIT_FUNCTIONS ]; then
|
||||||
|
#PS1="$PS1${LIGHTPURPLE}[${LIGHTCYAN}$(__git_prompt)${LIGHTPURPLE}]"
|
||||||
|
PS1="$PS1${LIGHTBROWN}(${LIGHTCYAN}\$(__git_prompt)${LIGHTBROWN}) "
|
||||||
|
fi
|
||||||
|
|
||||||
|
PS1="$PS1${RED}#${FORMAT_RESET}"
|
18
deploy.sh
18
deploy.sh
@ -1,12 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
THIS="$(dirname "$(readlink -fm "$0")")"
|
THIS="$(dirname "$(readlink -fm "$0")")"
|
||||||
CLEANUP=true
|
SERVER=FALSE
|
||||||
|
CLEANUP=false
|
||||||
|
|
||||||
_arguments() {
|
_arguments() {
|
||||||
for PARM in "$@"; do
|
for PARM in "$@"; do
|
||||||
if [ "${PARM}" = "--no-cleanup" ]; then
|
if [ "${PARM}" = "--server" ]; then
|
||||||
CLEANUP=false
|
SERVER=TRUE
|
||||||
|
elif [ "${PARM}" = "--cleanup" ]; then
|
||||||
|
CLEANUP=TRUE
|
||||||
elif [ "${PARM}" = "-h" ] || [ "${PARM}" = "--help" ]; then
|
elif [ "${PARM}" = "-h" ] || [ "${PARM}" = "--help" ]; then
|
||||||
_help
|
_help
|
||||||
exit 0
|
exit 0
|
||||||
@ -15,11 +18,12 @@ _arguments() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_help() {
|
_help() {
|
||||||
echo "Usage: $(readlink -fm "$0") [-h | --help] [--no-cleanup]"
|
echo "Usage: $(readlink -fm "$0") [-h | --help] [--cleanup]"
|
||||||
echo
|
echo
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " -h | --help : Prints this help message and quits"
|
echo " -h | --help : Prints this help message and quits"
|
||||||
echo " --no-cleanup: Does not clean the source folder after adding the bash overrides"
|
echo " --server: Customizes the terminal feel for a server installation"
|
||||||
|
echo " --cleanup: Removes the source folder after installation"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +52,10 @@ _main() {
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${SERVER}" = true ]; then
|
||||||
|
sed -i 's/terminal_fancyfying/terminal_fancyfying_server/' ~/.bashrc_overrides/_all
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${CLEANUP}" = true ]; then
|
if [ "${CLEANUP}" = true ]; then
|
||||||
echo "cleaning up..."
|
echo "cleaning up..."
|
||||||
_cleanup
|
_cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user