]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Don't use verbose mode for file operations (ln, rm)
authorAlexander Barton <alex@barton.de>
Sat, 15 Feb 2020 16:40:29 +0000 (17:40 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 15 Feb 2020 16:40:29 +0000 (17:40 +0100)
bin/axzshctl

index af10fabd3c54f70a67ee6e100d7ce3db522b8f91..4feade120037cebd602eb28ec925f0a8f37eee20 100755 (executable)
@@ -80,7 +80,7 @@ function NormalizedPluginName {
 
 function EnableAXZSH {
        for f (~/.zlogin ~/.zlogout ~/.zprofile ~/.zshrc); do
 
 function EnableAXZSH {
        for f (~/.zlogin ~/.zlogout ~/.zprofile ~/.zshrc); do
-               ln -sv "$AXZSH/ax.zsh" "$f" \
+               ln -s "$AXZSH/ax.zsh" "$f" \
                        || ax_error "Failed to create symbolic link for \"$f\"!"
        done
 }
                        || ax_error "Failed to create symbolic link for \"$f\"!"
        done
 }
@@ -88,7 +88,7 @@ function EnableAXZSH {
 function DisableAXZSH {
        for f (~/.zlogin ~/.zlogout ~/.zprofile ~/.zshrc); do
                if [ -h "$f" ]; then
 function DisableAXZSH {
        for f (~/.zlogin ~/.zlogout ~/.zprofile ~/.zshrc); do
                if [ -h "$f" ]; then
-                       rm -v "$f" || ax_msg 2 "Failed to remove \"$f\"!"
+                       rm "$f" || ax_msg 2 "Failed to remove \"$f\"!"
                elif [ -e "$f" ]; then
                        ax_error "Error: Not removing \"$f\", it is not a symbolic link!"
                else
                elif [ -e "$f" ]; then
                        ax_error "Error: Not removing \"$f\", it is not a symbolic link!"
                else
@@ -208,11 +208,11 @@ function ResetPlugins {
 function EnableDefaultPlugins {
        local dir="$AXZSH/active_plugins"
 
 function EnableDefaultPlugins {
        local dir="$AXZSH/active_plugins"
 
-       ax_msg - "Activating (linking) default plugins ..."
+       ax_msg - "Activating default plugins ..."
        mkdir -p "$dir"
        (
                cd "$dir" || exit 9
        mkdir -p "$dir"
        (
                cd "$dir" || exit 9
-               ln -sfv "$AXZSH/default_plugins/"* "$PWD"
+               ln -sf "$AXZSH/default_plugins/"* "$PWD"
        )
        return $?
 }
        )
        return $?
 }
@@ -252,7 +252,7 @@ function SetTheme {
                        return 1
                fi
        fi
                        return 1
                fi
        fi
-       ln -fsv "$theme" "$link_name" || return 1
+       ln -fs "$theme" "$link_name" || return 1
        return $?
 }
 
        return $?
 }