Browse Source

bashrc: actually check that shopt is available

master
Johnathan C Maudlin 1 year ago
parent
commit
25fd291517
No account linked to committer's email address
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      etc/bash/bashrc

+ 5
- 3
etc/bash/bashrc View File

@@ -2,8 +2,10 @@

[ -e /etc/profile ] && source /etc/profile

shopt -s checkwinsize
shopt -s no_empty_cmd_completion
shopt -s histappend
if [ -v "$(command -v shopt)" ]; then
shopt -s checkwinsize
shopt -s no_empty_cmd_completion
shopt -s histappend
fi

unset sh

Loading…
Cancel
Save