A slight improvement of a quickstart example #254
QuarticCat
started this conversation in
Show and tell
Replies: 1 comment
-
Hey, awesome tips. I'm afraid these syntaxes might confuse the newcomers. So I'll link it in as "Advanced Tips & Aliases" instead. Also, I think we can combine this with the tips shared here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Try this:
If we decide not to navigate, xplr will return nothing, resulting in a bare
cd
, which is equivalent tocd ~
. After changing to"${$(xplr):-.}"
, that situation will result in acd .
, which keeps still. This grammar is available in bash and zsh.Also, in zsh, we can implement fish-like navigation via xplr by this line:
where
^Q
means push-line, and\n
/^J
means accept-line.If we don't want to add this line into history, we can firstly open
hist_ignore_space
byThen change the above line into
Note the space before
cd
.My dotfiles
Beta Was this translation helpful? Give feedback.
All reactions