diff --git a/.zshrc b/.zshrc index 53818c1..7305092 100644 --- a/.zshrc +++ b/.zshrc @@ -167,13 +167,18 @@ function bitnami_seal() { then echo 'Invalid parameter, should be like bitnami_seal ' else + if [[ ! -f $2 ]] + then + echo "The file does not exist" + exit 1 + fi if [[ $2 != *".raw.yaml" ]]; then echo "The variable does not have the .raw.yaml extension" exit 1 fi # parse *.raw.yaml to *.yaml newname=${2//.raw/} - kubeseal --controller-namespace sealed-secrets --controller-name sealed-secrets -oyaml -n $1 < $2 > $newname + kubeseal --controller-namespace sealed-secrets --controller-name sealed-secrets -oyaml -n $1 -f $2 > $newname fi } diff --git a/setup.sh b/setup.sh index 69a54e0..40d661c 100755 --- a/setup.sh +++ b/setup.sh @@ -22,6 +22,7 @@ CONFIG_FILES=( starship.toml stylua.toml direnv + zed ) CUSTOM_FILES=( diff --git a/zed/keymap.json b/zed/keymap.json new file mode 100644 index 0000000..e69de29 diff --git a/zed/settings.json b/zed/settings.json new file mode 100644 index 0000000..4b97cca --- /dev/null +++ b/zed/settings.json @@ -0,0 +1,14 @@ +// Zed settings +// +// For information on how to configure Zed, see the Zed +// documentation: https://zed.dev/docs/configuring-zed +// +// To see all of Zed's default settings without changing your +// custom settings, run the `open default settings` command +// from the command palette or from `Zed` application menu. +{ + "ui_font_size": 16, + "buffer_font_family": "JetBrainsMono Nerd Font Mono", + "vim_mode": true, + "buffer_font_size": 16 +}