From ead327252a257d3c2046a0eb4b7c781477aef255 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sun, 7 Oct 2018 21:17:59 +0200 Subject: [PATCH] Update. --- zsh/custom/plugins/my_helpers/my_helpers.plugin.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/custom/plugins/my_helpers/my_helpers.plugin.zsh b/zsh/custom/plugins/my_helpers/my_helpers.plugin.zsh index 0345cdf..c4bb3f9 100644 --- a/zsh/custom/plugins/my_helpers/my_helpers.plugin.zsh +++ b/zsh/custom/plugins/my_helpers/my_helpers.plugin.zsh @@ -18,6 +18,12 @@ function convert_asy_to_png { rsvg-convert "$filename.svg" -o $(echo "$filename.svg" | sed -e 's/svg$/png/') } +function rns { + nf=$(echo "$1" | tr ' ' '_') + mv "$1" "$nf" +} + + # # Aliases