Skip to content

A way to exit lfcd without changing the directory #915

Answered by ilyagr
ilyagr asked this question in Q&A
Discussion options

You must be logged in to vote

After some adventures with quoting and irritation that cd $OLDPWD doesn't work,
I think I found a way that does work:

map q %{{
  lf -remote "send $id :cd $OLDPWD; quit"
}}
map Q quit

Replies: 2 comments 7 replies

Comment options

ilyagr
Aug 21, 2022
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by ilyagr
Comment options

You must be logged in to vote
7 replies
@DusanLesan
Comment options

@ilyagr
Comment options

ilyagr Aug 27, 2022
Collaborator Author

@ilyagr
Comment options

ilyagr Aug 27, 2022
Collaborator Author

@DusanLesan
Comment options

@CSWLeTianPai
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants