Skip to content

Commit b766335

Browse files
committed
zsh: try shorter pwd in prompt
1 parent e160b55 commit b766335

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zsh/prompt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ _josh_prompt_precmd() {
2424
local host_prompt=""
2525
local host_format="%m"
2626
local job_prompt="%(1j.%F{24}[%j]%f .)%f"
27-
local dir_prompt="%B%F{blue}%3~%f%b"
28-
# local dir_prompt="%B%F{blue}$(shrink-path -f)%f%b"
27+
# local dir_prompt="%B%F{blue}%3~%f%b"
28+
local dir_prompt="%B%F{blue}$(shrink-path -l 2 -s -t)%f%b"
2929

3030
if [[ -n $SSH_CONNECTION ]]; then
3131
host_prompt="%B%F{yellow}${user_format}${host_format}%f:%b"

0 commit comments

Comments
 (0)