show workspace name
This commit is contained in:
1 parent
2d9809f553
commit
24ae1d2c7c
2 files changed
+5
-2
No files matched your search
@@ -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