From 38bb69715468c74795fec6cfd86acf250dc38392 Mon Sep 17 00:00:00 2001 From: James Dixon Date: Wed, 30 Nov 2022 12:40:12 -0500 Subject: [PATCH] made some changes to PS1 --- config/bash/.bashrc | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/config/bash/.bashrc b/config/bash/.bashrc index ffc3085..f141df2 100644 --- a/config/bash/.bashrc +++ b/config/bash/.bashrc @@ -279,17 +279,19 @@ parse_git() { } # *plain prompts* -PS1="\W \\$ " +# PS1="\W \\$ " # PS1="[\u@\h:\W]\\$ " # PS1="\u@\h:\W\\$ " + # *color prompts* -# PS1="${bold}${bright_blue}\W ${bright_yellow}\\$ ${reset}" -# PS1="${bold}${bright_magenta}\u${bright_yellow}@${bright_cyan}\h${white}:${bright_blue}\W ${bright_yellow}\\$ ${reset}" +# PS1="${bold}${bright_blue}\w ${white}\\$ ${reset}" +# PS1="${bold}${bright_cyan}\u${bright_magenta}@${bright_yellow}\h${white}:${bright_blue}\w${white}\\$ ${reset}" + # *git color prompts* -# PS1="${bold}${bright_blue}\W\$(parse_git)${bright_green} \\$ ${reset}" -# PS1="${bold}${white}\t ${bright_blue}\W\$(parse_git) ${bright_cyan}\\$ ${reset}" -# PS1="${bold}${bright_yellow}\u${bright_magenta}@${bright_cyan}\h${white}:${bright_blue}\W\$(parse_git)${bright_green}\\$ ${reset}" -# PS1="${bold}\n${bright_cyan}\u ${white}at ${bright_yellow}\h ${white}in ${bright_blue}\w ${white}on \$(parse_git)\n${bright_yellow}\\$ ${reset}" +# PS1="${bold}${bright_blue}\w\$(parse_git)${white} \\$ ${reset}" +# PS1="${bold}${white}\t ${bright_blue}\w\$(parse_git) ${white}\\$ ${reset}" +# PS1="${bold}${bright_cyan}\u${bright_magenta}@${bright_yellow}\h${white}:${bright_blue}\w\$(parse_git)${white}\\$ ${reset}" +# PS1="${bold}${bright_cyan}\u${bright_magenta}@${bright_yellow}\h${white}:${bright_blue}\w\$(parse_git)${white}\\$ ${reset}" # bash autocompletion if ! shopt -oq posix; then @@ -347,18 +349,19 @@ fi # rust [ -d "$HOME/.cargo" ] && appendpath "$HOME/.cargo/bin" +# local bins +# [ -d "$HOME/.local/bin" ] && appendpath "$HOME/.local/bin" +[ -d "$HOME/.local/scripts" ] && appendpath "$HOME/.local/scripts" +# local rc +[ -r "$HOME/.config/bashrc" ] && source "$HOME/.config/bashrc" +[ -r "$HOME/.local/bashrc" ] && source "$HOME/.local/bashrc" + ## macOS package managers ## # homebrew [ -d "/opt/homebrew/bin" ] && appendpath "/opt/homebrew/bin" # python3 (macOS) [ -d "$HOME/Library/Python/3.8/bin" ] && appendpath "$HOME/Library/Python/3.8/bin" -# local bins -[ -d "$HOME/.local/bin" ] && appendpath "$HOME/.local/bin" -[ -d "$HOME/.local/scripts" ] && appendpath "$HOME/.local/scripts" -# local rc -[ -r "$HOME/.config/bashrc" ] && source "$HOME/.config/bashrc" -[ -r "$HOME/.local/bashrc" ] && source "$HOME/.local/bashrc" # start in tmux session if possible # if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then