cullenskink Posted July 11, 2019 Share Posted July 11, 2019 (edited) Fundamentally I am looking to do what I can do with Action:Terminal command (eg run scripts with my normal login environment) in the way that Action:Run script executes in the background without grabbing focus or dumping commands into my existing terminal. Can anyone help with this? P Edited July 11, 2019 by cullenskink solved Link to comment
deanishe Posted July 11, 2019 Share Posted July 11, 2019 You need to source your shell's configuration files from your script then. You may also need to start a shell yourself in interactive mode or edit your config files so the necessary bits are also loaded in non-interactive mode. Link to comment
cullenskink Posted July 11, 2019 Author Share Posted July 11, 2019 That is the bomb. If anyone else is looking for details, I have included the contents of my "Actions|Run script" here. I use Zsh. source ~/.zshrc #echo $HOME pbpaste | marked | pbcopy echo "converted" #end of script The pbpaste... converts plain text to markup, which is something I do a lot of. So anyone else just needs to put their bit where that line is. Thanks deanishe Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now