3

Installed bicon-git, this is written in .bashrc

# hack to launch bicon if not launched
if ! [[ "$(ps -p $(ps -p $(echo $$) -o ppid=) -o comm=)" =~ 'bicon'* ]]; then
  bicon.bin
fi

Launch ranger

[~] -> ranger  

make

Shift + s  

problem

[dir] -> exit
exit
done
    [dir] -> exit
[~] ->  

How to fix double input?

p.s. Arch, sakura, st

2

Instead of bicon.bin try exec bicon.bin, possibly with arguments to run your shell as a login shell.

When you run bicon.bin it spawns a shell, so now you have (1) the original shell, (2) bicon.bin running, and (3) the shell spawned by bicon.bin. With exec the original shell is replaced by bicon.bin.

1

first thing to understand that bicon is virtual shell, so you need to exit twice one from bicon and one from bash.

So to avoid double .bashrc command doings, you must put command that including bicon in top of .bashrc.

Also to avoid double exit, you can do:

alias exit='kill -9 $(ps -p $PPID -o ppid=)'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.