Skip to content

Commit

Permalink
init: provide default prompt for fish shell (#1588)
Browse files Browse the repository at this point in the history
* provide default prompt for fish shell

* Fix variable escaping

---------

Co-authored-by: Luca Di Maio <[email protected]>
  • Loading branch information
Boria138 and 89luca89 authored Oct 29, 2024
1 parent 5ad75a0 commit e2ac35b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,10 @@ if status --is-interactive
passwd && rm -f /var/tmp/.\$USER.passwd.initialize
trap - INT
end
function fish_prompt
set current_dir (basename (pwd))
echo "📦[\$USER@\$CONTAINER_ID \$current_dir]> "
end
end
EOF
fi
Expand Down

0 comments on commit e2ac35b

Please sign in to comment.