Comments (7)
disown
is a BASH shell built-in, so if the shell is set to sh
or not set at all (which defaults to sh
) this will not work.
you could use set shell bash
.
from lf.
disown
is a BASH shell built-in, so if the shell is set tosh
or not set at all (which defaults tosh
) this will not work. you could useset shell bash
.
I modify to set shell bash
But doesnt work: when close lf, then google-chrome closing too.
from lf.
You can try using setsid
as mentioned in the documentation
from lf.
maybe you can try something like that?
from lf.
You can try using
setsid
as mentioned in the documentation
Thx, this working, when change to cmd open &{{
and
lf -remote "send
This working, but...I use a file check to see if sudo should be used (unfortunately, this function is not included in lf), and not working this method:
*)
for f in $fx; do
if sudo -u "$USER" test -w "$f"; then
lf -remote "send $id \$$EDITOR \$f"
else
lf -remote "send $id \$sudo -A \$$EDITOR \$f"
fi
done;;
When open any config file must be sudo, then I get error message now: "-: 2: nano: parameter not set"
from lf.
I guess you can't use &
if sudo
because it needs to be connected to the terminal so you can authenticate, I could be wrong about that though.
But I'm not sure why you had to change to &
in the first place - setsid
worked fine for me when I used $
, I just had to pipe stderr to /dev/null
.
from lf.
I guess you can't use
&
ifsudo
because it needs to be connected to the terminal so you can authenticate, I could be wrong about that though.But I'm not sure why you had to change to
&
in the first place -setsid
worked fine for me when I used$
, I just had to pipe stderr to/dev/null
.
I changed it to & because that way it stopped flickering when I open something
I have a solution:
lf -remote "send $id \$bash -c 'sudo -A $EDITOR $f'"
But I still say that it would be nice if there was an option in lf to request a sudo prompt to the bottom (or even the sudo -A option), instead of having to quickly open another window with sudo lf .
from lf.
Related Issues (20)
- Toggle all items that are matched with search ("/") in current directory HOT 5
- Return to startup directory HOT 3
- sixel image preview not working with script but outputs multiple lines of characters when quitting lf HOT 2
- On Windows with pwsh, external trash command doesn't work with $Env:fx variable HOT 7
- on-redraw not being called on terminal resize HOT 3
- Bug: Tags broken on windows
- Feature Request: sepparate glob option for filter command HOT 1
- [BUG] When move failed with "permission denied" copy/cut buffer clearing. HOT 1
- setlocal depth/glob specification
- Dircount in previous pane not updated
- Bug: lf crashes when shell command is run in config file HOT 5
- Set shell interpreter seems not working for integrations HOT 4
- Video thumbnail previews with chafa HOT 5
- "set period 1" causes flickering in sixel image previews HOT 2
- Stopped working on Android HOT 2
- r33 changelog (preview) HOT 7
- r32 prints `^[[I` or `I` in libvte-based terminals HOT 5
- Setting a custom "root" directory HOT 1
- Alternate paste workflow (select then move/copy) doesnt work with multiple instances HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lf.