work on install method

main
czoczo 9 months ago
parent 00f609ce29
commit 536dc127aa
  1. 4
      getbb.sh

@ -9,14 +9,14 @@ get_file() {
handle_inputrc() { handle_inputrc() {
[ ! -f ~/.inputrc ] && touch ~/.inputrc [ ! -f ~/.inputrc ] && touch ~/.inputrc
grep -q "BetterBash" ~/.inputrc || get_file /.inputrc >> ~/.inputrc && \ grep -q "BetterBash" ~/.inputrc || get_file /.inputrc >> ~/.inputrc
bind -f ~/.inputrc
} }
DIR=~/.bb DIR=~/.bb
CMD=$(cat <<-END CMD=$(cat <<-END
# BetterBash # BetterBash
[ -f $DIR/bb.sh ] && . $DIR/bb.sh [ -f $DIR/bb.sh ] && . $DIR/bb.sh
bind -f ~/.inputrc
END END
) )

Loading…
Cancel
Save