瀏覽代碼

[zsh] Add hostname when remote

Colin Powell 1 年之前
父節點
當前提交
3fb1ec63ae
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      zsh/.zshrc

+ 4 - 0
zsh/.zshrc

@@ -98,3 +98,7 @@ for f in ~/.dotfiles.sure/direnv/*.sh; do source $f; done
 
 eval "$(atuin init zsh)"
 export AWS_PROFILE=sure-inc
+
+local hostname="%{$fg_bold[white]%}%m"
+
+PROMPT="${hostname} ${PROMPT}"