config: remove bashisms
This commit is contained in:
parent
f4adb3c4ef
commit
20957a948c
4 changed files with 14 additions and 11 deletions
|
@ -29,7 +29,7 @@ variables:
|
||||||
|
|
||||||
font:
|
font:
|
||||||
mono: Hack Nerd Font
|
mono: Hack Nerd Font
|
||||||
interface: Inter
|
interface: Liberation Sans
|
||||||
size:
|
size:
|
||||||
small: 12
|
small: 12
|
||||||
medium: 14
|
medium: 14
|
||||||
|
@ -225,7 +225,7 @@ actions:
|
||||||
|
|
||||||
vimplug: >
|
vimplug: >
|
||||||
nvim +PlugUpgrade +PlugInstall +PlugUpdate +qall
|
nvim +PlugUpgrade +PlugInstall +PlugUpdate +qall
|
||||||
&> /dev/null &
|
> /dev/null &
|
||||||
|
|
||||||
reload_kakoune: >
|
reload_kakoune: >
|
||||||
kak -l | xargs -r -n1
|
kak -l | xargs -r -n1
|
||||||
|
|
|
@ -10,7 +10,7 @@ define-command -hidden -override git-try-show-diff %{
|
||||||
evaluate-commands -draft %sh{
|
evaluate-commands -draft %sh{
|
||||||
test -f "$kak_buffile" || exit 0
|
test -f "$kak_buffile" || exit 0
|
||||||
cd $(dirname "$kak_buffile")
|
cd $(dirname "$kak_buffile")
|
||||||
git rev-parse --git-dir &> /dev/null &&
|
git rev-parse --git-dir > /dev/null &&
|
||||||
echo "git show-diff"
|
echo "git show-diff"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
testz() {
|
testz() {
|
||||||
if test -z "$1"; then
|
if test -z "$1"; then
|
||||||
echo "$2" >&2
|
echo "$2" >&2
|
||||||
|
@ -10,14 +12,15 @@ testz() {
|
||||||
testz "$DOTDROP_CONFIG" "DOTDROP_CONFIG is not set"
|
testz "$DOTDROP_CONFIG" "DOTDROP_CONFIG is not set"
|
||||||
testz "$1" "No script name provided"
|
testz "$1" "No script name provided"
|
||||||
|
|
||||||
pushd "$(dirname "$DOTDROP_CONFIG")"
|
DOTDIR="$(dirname "$DOTDROP_CONFIG")"
|
||||||
|
cd "$DOTDIR/dotfiles/scripts"
|
||||||
|
|
||||||
if ! test -f "dotfiles/scripts/$1"
|
if ! test -f "$1"
|
||||||
then
|
then
|
||||||
printf '#!/bin/sh\n' > "dotfiles/scripts/$1"
|
pwd
|
||||||
|
touch "$1"
|
||||||
chmod u+x "dotfiles/scripts/$1"
|
printf '#!/bin/sh\n' > "$1"
|
||||||
|
chmod u+x "$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kak "dotfiles/scripts/$1"
|
kak "$1"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
function clean() {
|
clean() {
|
||||||
if test $? -ne 0; then
|
if test $? -ne 0; then
|
||||||
notify-send "Could not sync ${GAME_NAME}"
|
notify-send "Could not sync ${GAME_NAME}"
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue