21a0c7224791

text-mangling aliases
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 08 Sep 2015 16:39:27 +0000
parents 54df794e9d59
children bec1b5c8a9b1
branches/tags (none)
files fish/functions/dr.fish fish/functions/lower.fish fish/functions/upper.fish

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fish/functions/dr.fish	Tue Sep 08 16:39:27 2015 +0000
@@ -0,0 +1,3 @@
+function dr -d "dr is 'tr -d'"
+    tr -d $argv
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fish/functions/lower.fish	Tue Sep 08 16:39:27 2015 +0000
@@ -0,0 +1,3 @@
+function lower -d "lowercase input"
+    gsed -e 's/./\L\0/g' $argv
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fish/functions/upper.fish	Tue Sep 08 16:39:27 2015 +0000
@@ -0,0 +1,3 @@
+function upper -d "uppercase input"
+    gsed -e 's/./\U\0/g' $argv
+end