mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
[shell/cnf] check which shell before sourcing
This commit is contained in:
parent
c3dcd8c03f
commit
02ebb592df
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# arch
|
||||
[ -r /usr/share/doc/pkgfile/command-not-found.bash ] && . /usr/share/doc/pkgfile/command-not-found.bash
|
||||
if [ "${BASH_VERSION}" ] && [ -r /usr/share/doc/pkgfile/command-not-found.bash ]; then
|
||||
. /usr/share/doc/pkgfile/command-not-found.bash
|
||||
fi
|
||||
|
||||
if [ "${ZSH_VERSION}" ] && [ -r /usr/share/doc/pkgfile/command-not-found.zsh ]; then
|
||||
. /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue