show workspace name
This commit is contained in:
@@ -3,7 +3,10 @@ function fish_prompt
|
||||
|
||||
set -l host (hostname -s)
|
||||
if set -q DEVCONTAINER
|
||||
set host DEV
|
||||
set host (ls /workspaces | head -n 1)
|
||||
if test -z "$host"
|
||||
set host DEV
|
||||
end
|
||||
end
|
||||
set_color (echo "$host" | md5sum | cut -c-6)
|
||||
echo -sn $host
|
||||
|
||||
Reference in New Issue
Block a user