From b3ac4045665aa3158c67271d88822bc66ea29451 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 15 May 2024 07:00:45 +0300 Subject: shells: use default bash config, only provide bash prompt --- bash-base.sh | 17 ----------------- bash-prompt.sh | 7 +++++++ 2 files changed, 7 insertions(+), 17 deletions(-) delete mode 100644 bash-base.sh create mode 100644 bash-prompt.sh diff --git a/bash-base.sh b/bash-base.sh deleted file mode 100644 index def52ec..0000000 --- a/bash-base.sh +++ /dev/null @@ -1,17 +0,0 @@ -# source ~/.shells/alias.sh -# source ~/.shells/exports.sh -# source /etc/profile -source ~/.profile - - -GUIX_PROFILE="$HOME/.guix-profile" -. "$GUIX_PROFILE/etc/profile" - -## Prompt -if ${use_color} ; then - PS1='$(git branch --show-current 2>/dev/null)'; PS1='\n\[\e[38;5;102;2;3m\]\u\[\e[0m\]@\[\e[38;5;153;2;3m\]\h\n\[\e[0;38;5;226m\]\w \[\e[38;5;75;3m\]${PS1_CMD1}\n\[\e[0;38;5;198m\]λ \[\e[0m\]' -else - PS1+='\u@\h \w \$ ' -fi - -## complete -cf sudo diff --git a/bash-prompt.sh b/bash-prompt.sh new file mode 100644 index 0000000..438b8be --- /dev/null +++ b/bash-prompt.sh @@ -0,0 +1,7 @@ + +## Prompt +if ${use_color} ; then + PS1='$(git branch --show-current 2>/dev/null)'; PS1='\n\[\e[38;5;102;2;3m\]\u\[\e[0m\]@\[\e[38;5;153;2;3m\]\h\n\[\e[0;38;5;226m\]\w \[\e[38;5;75;3m\]${PS1_CMD1}\n\[\e[0;38;5;198m\]λ \[\e[0m\]' +else + PS1+='\u@\h \w \$ ' +fi -- cgit v1.2.3