summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpankunull <panku_null@proton.me>2025-09-04 04:15:26 +0200
committerpankunull <panku_null@proton.me>2025-09-04 04:15:26 +0200
commitdac299b1d9c2f5e24358841af13efdce580c6c43 (patch)
tree7f3bda71c103d54427d84493dd05d4c986b3dca3
parent91e066821a156f058ae64cd7d29636f90cb26de8 (diff)
Fuck bash colors shit video game.
-rw-r--r--src/.bashrc5
-rw-r--r--src/.bashrc_ps148
2 files changed, 1 insertions, 52 deletions
diff --git a/src/.bashrc b/src/.bashrc
index d69cb43..84d78e8 100644
--- a/src/.bashrc
+++ b/src/.bashrc
@@ -9,13 +9,10 @@ export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Source dotfiles
-source ~/.bashrc_ps1
source ~/.bashrc_alias
# Minimalist PS1: shows last exit, user, current folder
-
-PS1='[\$? \u \W ]\$ '
-
+PS1='[\h \W ]\$ '
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
diff --git a/src/.bashrc_ps1 b/src/.bashrc_ps1
deleted file mode 100644
index e0b2b97..0000000
--- a/src/.bashrc_ps1
+++ /dev/null
@@ -1,48 +0,0 @@
-#Dynamic mic PS1 using terminal palette colors only
-function update_ps1 {
- local exit_code=$?
-
-# Color exit code: green if 0, red otherwise
- if [[ $exit_code -eq 0 ]]; then
- local exit_display="\[\e[1;32m\]$exit_code\[\e[0m\]" # bright green
- else
- local exit_display="\[\e[1;31m\]$exit_code\[\e[0m\]" # bright red
- fi
-
- # Symbol always bright white
- local symbol="\[\e[1;37m\]\$\[\e[0m\]"
-
- # Brackets in bright white
- local open_bracket="\[\e[1;37m\][\[\e[0m\]"
- local close_bracket="\[\e[1;37m\]]\[\e[0m\]"
-
- # User: red for root, cyan otherwise
- if [ $(id -u) -eq 0 ]; then
- local user="\[\e[1;31m\]r\e[0m\]"
- else
- local user="\[\e[1;36m\]u\e[0m\]"
- fi
-
- # Hostname
- local hostname="\[\e[1;33m\]\h\e[0m\]"
-
- # Current folder: yellow
- local folder="\[\e[1;33m\]\W\[\e[0m\]"
-
- # Git status: green if up to date, red if ahead, yellow if dirty
- #local git_status=""
- #if git rev-parse --is-inside-work-tree &>/dev/null; then
- # if [[ -z $(git status --porcelain 2>/dev/null) ]]; then
- # git_status="\[\e[1;32m\](git)\[\e[0m\]" # clean
- # else
- # git_status="\[\e[1;31m\](git)\[\e[0m\]" # dirty
- # fi
- #fi
-
- # Build the prompt
- PS1="${open_bracket}${exit_display} ${user}-${hostname} ${folder}${close_bracket}${symbol} "
-}
-
-# Update PS1 after every command
-PROMPT_COMMAND='update_ps1'
-