From 12ef5236fdac8fe2c177e82f99c0b6040ac748f3 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 16 May 2025 13:50:23 +0200 Subject: [PATCH] fixed zshrc function. --- configs/home-manager/zsh.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configs/home-manager/zsh.nix b/configs/home-manager/zsh.nix index 157711d..23506c8 100644 --- a/configs/home-manager/zsh.nix +++ b/configs/home-manager/zsh.nix @@ -54,18 +54,16 @@ #moves a file, leaving a symlink in its place. mvln(){ - set -eu - # Check for correct number of arguments if [ "$#" -ne 2 ]; then echo "Usage: $0 " - exit 1 + return 1 fi source="$1" destination="$2" - Check if source exists + # Check if source exists if [ ! -e "$source" ]; then echo "$source does not exist." - exit 1 + return 1 fi mv -- "$source" "$destination"