Skip to content

Commit

Permalink
fix bash prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagowfx committed Apr 16, 2024
1 parent d00be84 commit 804d82d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bash/.bashrc.d/prompt.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# Set bash prompt.
# shellcheck disable=SC2034

# Monokai-inspired: https://gist.github.com/transat/6694554
RESET=$'\e[0m'
Expand All @@ -10,7 +11,6 @@ ORANGE=$'\e[33;49m'
PINK=$'\e[31;49m'
PURPLE=$'\e[35;49m'
RED=$'\e[31;49m'
YELLOW=$'\e[37;49m'

prompt_command() {
# this must be the first line
Expand Down Expand Up @@ -46,10 +46,3 @@ prompt_command() {
hash __vte_osc7 &>/dev/null && __vte_osc7
}
PROMPT_COMMAND="prompt_command"

# Example extension:
# prompt_command_corp() {
# prompt_command
# # PS1="${PS1/\\w/\\[$RESET\\]\\[$GREEN\\][$vcs:$client]\\[$RESET\\]\\[$BOLD\\]$shortpath}"
# }
# PROMPT_COMMAND="prompt_command_corp"

0 comments on commit 804d82d

Please sign in to comment.