Skip to content

Commit edaaaf2

Browse files
committed
make the default fish_prompt an autoloaded function
closes 89luca89#1671
1 parent 3b9f0e8 commit edaaaf2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

distrobox-init

+7-4
Original file line numberDiff line numberDiff line change
@@ -2151,10 +2151,13 @@ if status --is-interactive
21512151
passwd && rm -f /var/tmp/.\$USER.passwd.initialize
21522152
trap - INT
21532153
end
2154-
function fish_prompt
2155-
set current_dir (basename (pwd))
2156-
echo "📦[\$USER@\$CONTAINER_ID \$current_dir]> "
2157-
end
2154+
end
2155+
EOF
2156+
mkdir -p /etc/fish/functions
2157+
cat << EOF > /etc/fish/functions/fish_prompt.fish
2158+
function fish_prompt
2159+
set current_dir (basename (pwd))
2160+
echo "📦[\$USER@\$CONTAINER_ID \$current_dir]> "
21582161
end
21592162
EOF
21602163
fi

0 commit comments

Comments
 (0)