Signed-off-by: d0zingcat <leewtang@gmail.com>
This commit is contained in:
d0zingcat
2024-02-23 16:51:21 +08:00
parent 033f260e60
commit 5912fbf60c
4 changed files with 21 additions and 1 deletions

7
.zshrc
View File

@@ -167,13 +167,18 @@ function bitnami_seal() {
then then
echo 'Invalid parameter, should be like bitnami_seal <namespace> <filename>' echo 'Invalid parameter, should be like bitnami_seal <namespace> <filename>'
else else
if [[ ! -f $2 ]]
then
echo "The file does not exist"
exit 1
fi
if [[ $2 != *".raw.yaml" ]]; then if [[ $2 != *".raw.yaml" ]]; then
echo "The variable does not have the .raw.yaml extension" echo "The variable does not have the .raw.yaml extension"
exit 1 exit 1
fi fi
# parse *.raw.yaml to *.yaml # parse *.raw.yaml to *.yaml
newname=${2//.raw/} 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 fi
} }

View File

@@ -22,6 +22,7 @@ CONFIG_FILES=(
starship.toml starship.toml
stylua.toml stylua.toml
direnv direnv
zed
) )
CUSTOM_FILES=( CUSTOM_FILES=(

0
zed/keymap.json Normal file
View File

14
zed/settings.json Normal file
View File

@@ -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
}