mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
8 lines
214 B
Bash
8 lines
214 B
Bash
#check if we've shelled out from within vim
|
|
#if VIMRUNTIME is set, it's likely the shell we are
|
|
# in was started from vim.
|
|
function shell_from_vim() {
|
|
if [[ -n $VIMRUNTIME ]]; then
|
|
echo 'vim';
|
|
fi
|
|
}
|