From 3d83d0251cabf69b289c9e2bbe1759b8681602d9 Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Tue, 11 Mar 2025 04:42:14 +0000 Subject: [PATCH] Update bashrc --- bashrc | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/bashrc b/bashrc index 69e8e2b..a616fb8 100644 --- a/bashrc +++ b/bashrc @@ -1,4 +1,3 @@ - # Function to parse git branch function parse_git_branch { git branch 2>/dev/null | grep '^*' | colrm 1 2 @@ -10,24 +9,9 @@ function parse_git_dirty { } # Custom prompt with proper Unicode escapes and hexadecimal notation -PS1=$'\[\e[38;5;10m\]\u\[\e[m\] \[\e[38;5;14m\]\w\[\e[m\] \[\e[38;5;9m\]\uE0B0\[\e[m\] \[\e[38;5;11m\]$(parse_git_branch)$(parse_git_dirty)\[\e[m\] \[\e[38;5;15m\]\uF013\[\e[m\] ' +# PS1=$'\[\e[38;5;10m\]\u\[\e[m\] \[\e[38;5;14m\]\w\[\e[m\] \[\e[38;5;9m\]\uE0B0\[\e[m\] \[\e[38;5;11m\]$(parse_git_branch)$(parse_git_dirty)\[\e[m\] \[\e[38;5;15m\]\uF013\[\e[m\] ' - -function _update_ps1() { - #PS1="$(/opt/homebrew/bin/powerline-go -hostname-only-if-ssh -cwd-mode fancy -modules direnv,dotenv,rbenv -error $? -jobs $(jobs -p | wc -l))" - PS1="$(/opt/homebrew/bin/powerline-go -hostname-only-if-ssh -cwd-mode fancy -modules="venv,user,host,ssh,cwd,perms,git,hg,jobs,exit,rbenv,root" -error $? -cwd-max-depth 2 -jobs $(jobs -p | wc -l))" - - # Uncomment the following line to automatically clear errors after showing - # them once. This not only clears the error for powerline-go, but also for - # everything else you run in that shell. Don't enable this if you're not - # sure this is what you want. - - set "?" -} - -if [ "$TERM" != "linux" ] && [ -f "/opt/homebrew/bin/powerline-go" ]; then - PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND" -fi +PS1=$'\[\e[38;5;2m\]\u\[\e[m\]@\[\e[38;5;8m\]\h\[\e[m\] \[\e[38;5;14m\]\w\[\e[m\] \[\e[38;5;9m\]\uE0B0\[\e[m\] \[\e[38;5;11m\]$(parse_git_branch)$(parse_git_dirty)\[\e[m\] \[\e[38;5;15m\]\uF013\[\e[m\] ' set -o vi export RUBY_YJIT_ENABLE=1