Fix __guix_env in prompt

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-06-07 23:15:50 -04:00
parent 325f0a00db
commit 02397c2651
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ __ssh() {
}
__guix_env() {
local re='[\\(]?\\(\"([^\"]*)\"'
local re='[\\(]?\\(\"([a-z]*)\"$'
if [[ \"$GUIX_ENVIRONMENT\" ]]; then
local PACKAGES=($(while read -r line; do
[[ \"$line\" =~ $re ]] && printf '%s ' \"${BASH_REMATCH[1]}\"

View File

@ -114,7 +114,7 @@ __ssh() {
}
__guix_env() {
local re='[\(]?\("([^"]*)"'
local re='[\(]?\("([a-z]*)"$'
if [[ "$GUIX_ENVIRONMENT" ]]; then
local PACKAGES=($(while read -r line; do
[[ "$line" =~ $re ]] && printf '%s ' "${BASH_REMATCH[1]}"