You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.6 KiB

  1. diff --git a/share/functions/prompt_hostname.fish b/share/functions/prompt_hostname.fish
  2. index 4348bce2..8502ce3f 100644
  3. --- a/share/functions/prompt_hostname.fish
  4. +++ b/share/functions/prompt_hostname.fish
  5. @@ -2,7 +2,7 @@
  6. # hostname command uses. So cache the answer so including it in the prompt doesn't make fish seem
  7. # slow.
  8. if not set -q __fish_prompt_hostname
  9. - set -g __fish_prompt_hostname (hostname | string split '.')[1]
  10. + set -g __fish_prompt_hostname (uname -n | string split '.')[1]
  11. end
  12. function prompt_hostname
  13. diff --git a/share/tools/web_config/sample_prompts/pythonista.fish b/share/tools/web_config/sample_prompts/pythonista.fish
  14. index 9529035c..57ffaf86 100644
  15. --- a/share/tools/web_config/sample_prompts/pythonista.fish
  16. +++ b/share/tools/web_config/sample_prompts/pythonista.fish
  17. @@ -7,7 +7,7 @@ function fish_prompt
  18. set -g VIRTUAL_ENV_DISABLE_PROMPT true
  19. end
  20. set_color yellow
  21. - printf '%s' (whoami)
  22. + printf '%s' (id -un)
  23. set_color normal
  24. printf ' at '
  25. diff --git a/share/tools/web_config/sample_prompts/screen_savvy.fish b/share/tools/web_config/sample_prompts/screen_savvy.fish
  26. index 411a5501..5cdcfb69 100644
  27. --- a/share/tools/web_config/sample_prompts/screen_savvy.fish
  28. +++ b/share/tools/web_config/sample_prompts/screen_savvy.fish
  29. @@ -2,8 +2,8 @@
  30. # author: Matthias
  31. function fish_prompt -d "Write out the prompt"
  32. if test -z $WINDOW
  33. - printf '%s%s@%s%s%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (prompt_hostname) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
  34. + printf '%s%s@%s%s%s%s%s> ' (set_color yellow) (id -un) (set_color purple) (prompt_hostname) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
  35. else
  36. - printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (prompt_hostname) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
  37. + printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) (id -un) (set_color purple) (prompt_hostname) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
  38. end
  39. end
  40. diff --git a/share/tools/web_config/sample_prompts/terlar.fish b/share/tools/web_config/sample_prompts/terlar.fish
  41. index d49ef340..59b3d267 100644
  42. --- a/share/tools/web_config/sample_prompts/terlar.fish
  43. +++ b/share/tools/web_config/sample_prompts/terlar.fish
  44. @@ -6,7 +6,7 @@ function fish_prompt --description 'Write out the prompt'
  45. # User
  46. set_color $fish_color_user
  47. - echo -n (whoami)
  48. + echo -n (id -un)
  49. set_color normal
  50. echo -n '@'