From: root Date: Tue, 30 Aug 2016 21:24:13 +0000 (+0100) Subject: is_shell X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=5205c2cca49f661f6a0321922c62fa8ed79b741a;p=nb.git is_shell --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 97be3979..90beb520 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -555,3 +555,9 @@ boot_loader() { return 0 } + +is_shell() { + #[[ $- == *i* ]] && echo "Interactive" || echo "Not interactive" + [[ $- == *i* ]] && return 0 + return 1 +} diff --git a/etc/vim/source/._ShowFunc.vim b/etc/vim/source/._ShowFunc.vim deleted file mode 100644 index 16ce0ba9..00000000 Binary files a/etc/vim/source/._ShowFunc.vim and /dev/null differ