All Questions
4
questions
2
votes
1
answer
3k
views
execute function in different shell
I usually zsh. I want to execute a function in bash and return back to my original shell. I can do this manually, but I want to automate it. How can I do that?
For example, I am on zsh.
I want to ...
7
votes
1
answer
2k
views
tmux - get pwd of another pane in a bash script?
Is there anyway to find out information about the current working directory of any pane from within a tmux session?
I'd like to write a bash script that changes the directory of the current pane to ...
4
votes
1
answer
3k
views
Script-specific autocomplete in shell
I create a lot of little scripts to help me in my every day life.
I would like to provide auto-complete for them, specially that I intend to share them with people.
Now, I know I can create auto-...
23
votes
2
answers
9k
views
Writing shell scripts that will run on any shell (using multiple shebang lines?)
I've just started getting deeper into shell scripting, and I've always just thrown my script in a file, marked it chmod +x and then done /path/to/script.sh and let whatever interpreter is the default ...