diff options
| author | jason | 2025-09-11 09:46:00 -0600 |
|---|---|---|
| committer | jason | 2025-09-11 09:46:00 -0600 |
| commit | ba35c5081c984a67b02ad1be628cdffdbc70ffd2 (patch) | |
| tree | 9f677a0d4f17b4e9ba4091de8b897214d919b13d | |
| parent | 0882ad5759786a90dc847b151dff784a45790edc (diff) | |
| download | dotfiles-ba35c5081c984a67b02ad1be628cdffdbc70ffd2.tar.gz dotfiles-ba35c5081c984a67b02ad1be628cdffdbc70ffd2.zip | |
debugging ssh color
| -rw-r--r-- | bash/.bashrc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index b0087b2..5d0b2c5 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -11,11 +11,14 @@ fi | |||
| 11 | 11 | ||
| 12 | LC_ALL="en_US.UTF-8" | 12 | LC_ALL="en_US.UTF-8" |
| 13 | # This PS1 is completed at the end, allowing statuses to be included between the directory and closing $ | 13 | # This PS1 is completed at the end, allowing statuses to be included between the directory and closing $ |
| 14 | if [ "$SESSION_TYPE" == "ssh" ]; then | 14 | if [ "$SESSION_TYPE" = "ssh" ]; then |
| 15 | echo "SSH" | ||
| 15 | HOST_COLOR="\[\e[38;5;124m\]" | 16 | HOST_COLOR="\[\e[38;5;124m\]" |
| 16 | else | 17 | else |
| 18 | echo "NON" | ||
| 17 | HOST_COLOR="\[\e[38;5;160m\]" | 19 | HOST_COLOR="\[\e[38;5;160m\]" |
| 18 | fi | 20 | fi |
| 21 | echo ${HOST_COLOR}asdf | ||
| 19 | 22 | ||
| 20 | PS1="[\u@${HOST_COLOR}\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]" | 23 | PS1="[\u@${HOST_COLOR}\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]" |
| 21 | END_PS1="\$\[\e[m\] " | 24 | END_PS1="\$\[\e[m\] " |
| @@ -450,5 +453,12 @@ at-finit() { | |||
| 450 | printf "\nSuccess. View your public repository at https://depot.antitech.org/${name}/\n" | 453 | printf "\nSuccess. View your public repository at https://depot.antitech.org/${name}/\n" |
| 451 | } | 454 | } |
| 452 | 455 | ||
| 456 | # voze downloader | ||
| 457 | vozegrab() { | ||
| 458 | curl -O "https://audit-tool-backend.voze.com/files/audio/$1" \ | ||
| 459 | -H "Content-Type: application/json" \ | ||
| 460 | -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJmam9zIiwibWFpbGJveCI6IjU1NTUiLCJleHAiOjE5NTMyNDgxNjd9.aHz-km0y7F7XVYe-vRIhwMOFZujzxO-zfLYDhPCx_5Y" | ||
| 461 | } | ||
| 462 | |||
| 453 | # Close off the PS1 with the $ | 463 | # Close off the PS1 with the $ |
| 454 | PS1=${PS1}${END_PS1} | 464 | PS1=${PS1}${END_PS1} |