From cbfcc890e3b76d942b927809bf981a5fa7289e6a Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 28 Jul 2023 12:32:43 +0200 Subject: l yellow.r: migrate to airvpn --- lass/2configs/zsh.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lass/2configs/zsh.nix') diff --git a/lass/2configs/zsh.nix b/lass/2configs/zsh.nix index a7b0c372..f77aa258 100644 --- a/lass/2configs/zsh.nix +++ b/lass/2configs/zsh.nix @@ -51,6 +51,18 @@ #enable automatic rehashing of $PATH zstyle ':completion:*' rehash true + # fancy mv which interactively gets the second argument if not given + function mv() { + if [[ "$#" -ne 1 ]] || [[ ! -e "$1" ]]; then + command mv -v "$@" + return + fi + + newfilename="$1" + vared newfilename + command mv -v -- "$1" "$newfilename" + } + #beautiful colors eval $(dircolors -b ${pkgs.fetchFromGitHub { owner = "trapd00r"; -- cgit v1.2.3