On 30/05/18 13:48, Jason Franklin wrote:
> I would like for bash to be able to discern whether it is being
> run with :shell or with :term. I would assume this would need
> to be done with an environment variable. Does this feature to
> do something like this already exist?
You could look at the heirarchy of the current session:
if [ -v $( ps | grep vim ) ]
then echo "I'm a terminal session"
else echo "I'm in a shell"
fi
I am not sure if this is purely a bash feature, though!
Tim F
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Monday, June 4, 2018
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment