From 6c650e4fce5ab1c6488f120a80c2400d8972fffa Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 7 Dec 2022 15:47:22 +0100 Subject: fix preludes in bash scripts --- %HOME%/.config/nnn/plugins/myfzcd | 1 + fix_permissions.sh | 1 + vim_solarized.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/%HOME%/.config/nnn/plugins/myfzcd b/%HOME%/.config/nnn/plugins/myfzcd index 36bfb24..30b5ebe 100755 --- a/%HOME%/.config/nnn/plugins/myfzcd +++ b/%HOME%/.config/nnn/plugins/myfzcd @@ -3,6 +3,7 @@ # Like the fzcd plugin, but better. set -o errexit -o pipefail +shopt -s inherit_errexit lastpipe if command -v fzf > /dev/null 2>&1; then sel="$( fzf )" diff --git a/fix_permissions.sh b/fix_permissions.sh index 331bdc8..d8e6476 100755 --- a/fix_permissions.sh +++ b/fix_permissions.sh @@ -8,6 +8,7 @@ # for every file in this repository. set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" script_dir="$( cd -- "$script_dir" && pwd )" diff --git a/vim_solarized.sh b/vim_solarized.sh index b6ecc91..fc5f20d 100755 --- a/vim_solarized.sh +++ b/vim_solarized.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe plugins_dir="$HOME/.vim/pack/plugins/start" name='vim-colors-solarized' -- cgit v1.2.3