I'm trying to set a keyboard shortcut to open xfce4-terminal and run history(command) and keeping terminal open, but so far no avail, I read some tutorials then I tried xfce4-terminal -e "/bin/bash -c history; exec bash" , but nothing happens (I noticed the terminal opens and closes quickly) how to get it working? thks, vladi OS: Xubuntu 16.04.6
You have to enable history separately in a non-interactive shell:
Reference
Have you tried
--hold
?According to their doc, this should work
xfce4-terminal --command "command_with_args" --hold
In your case
xfce4-terminal --command "history" --hold