diff options
| author | tv <tv@krebsco.de> | 2023-08-01 12:14:30 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2023-08-01 12:14:30 +0200 |
| commit | 7be9bfdc55d672de39dce98dae9c6d112404dfc6 (patch) | |
| tree | e89a93ad96e6f35490ffbf6b6a337ca4dcc9a170 /lass/2configs | |
| parent | 5d1b0675cf179f863a5b34b67661a953197b6057 (diff) | |
| parent | 6e63efa3645353bc0549f5f152ef811fff5d644c (diff) | |
Merge remote-tracking branch 'orange/master'
Diffstat (limited to 'lass/2configs')
| -rw-r--r-- | lass/2configs/zsh.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lass/2configs/zsh.nix b/lass/2configs/zsh.nix index a7b0c372c..f77aa258b 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"; |
