Browse Source

.zshrc: some prompt variations

Current one leads with timestamp, has an scp-like username@host:path
section, varies prompt character using bin/fragment-bullet.
Brennen Bearnes 3 months ago
parent
commit
a2325fdf47
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      home/.zshrc

+ 7
- 3
home/.zshrc View File

@@ -202,12 +202,16 @@ compinit
202 202
 
203 203
   function precmd {
204 204
     # Semi-traditional one-line prompt:
205
-    # export PS1="$pr_meta$PR_TIME_COLOR%*$PR_NO_COLOR $PR_HOST_COLOR%n@%m$PR_NO_COLOR:$PR_PATH_COLOR%~$PR_NO_COLOR $PR_GIT_COLOR$(parse_git_branch)$PR_SIGIL_COLOR$PR_SIGIL$PR_NO_COLOR "
205
+    export PS1="$pr_meta$PR_TIME_COLOR%*$PR_NO_COLOR $PR_HOST_COLOR%n@%m$PR_NO_COLOR:$PR_PATH_COLOR%~$PR_NO_COLOR $PR_GIT_COLOR$(parse_git_branch)$PR_SIGIL_COLOR$PR_SIGIL$PR_NO_COLOR "
206 206
 
207 207
     # Multi-line with some notions thiefed from:
208 208
     # https://lobste.rs/s/x5ioqm/what_does_your_shell_prompt_look_like
209
-    export PS1="$pr_meta┌$PR_TIME_COLOR%*$PR_NO_COLOR $PR_HOST_COLOR%n@%m$PR_NO_COLOR:$PR_PATH_COLOR%~$PR_NO_COLOR $PR_GIT_COLOR$(parse_git_branch)$PR_NO_COLOR
210
-└$PR_SIGIL_COLOR$PR_SIGIL$PR_NO_COLOR "
209
+    # export PS1="$pr_meta┌$PR_TIME_COLOR%*$PR_NO_COLOR $PR_HOST_COLOR%n@%m$PR_NO_COLOR:$PR_PATH_COLOR%~$PR_NO_COLOR $PR_GIT_COLOR$(parse_git_branch)$PR_NO_COLOR
210
+#└$PR_SIGIL_COLOR$PR_SIGIL$PR_NO_COLOR "
211
+
212
+    # Variant with host/path on second line:
213
+    #export PS1="$pr_meta┌$PR_TIME_COLOR%*$PR_NO_COLOR $PR_GIT_COLOR$(parse_git_branch)$PR_NO_COLOR
214
+#└$PR_HOST_COLOR%n@%m$PR_NO_COLOR:$PR_PATH_COLOR%~$PR_NO_COLOR $PR_SIGIL_COLOR$PR_SIGIL$PR_NO_COLOR "
211 215
   }
212 216
 
213 217
   # This will reset the prompt every so often - it definitely shouldn't happen

Loading…
Cancel
Save