summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2022-10-31 02:25:37 +0100
committerache <ache@ache.one>2022-10-31 02:25:37 +0100
commit99dc5fb465aba46e6de942fbc90d13acd8e600a3 (patch)
tree74884f3d24c8492ee0fa97d87fc756baecee9463
parentAdd ☁️ related prompts (diff)
Remove unused functions
-rw-r--r--functions/g.fish1
-rw-r--r--functions/humanize_duration.fish19
2 files changed, 0 insertions, 20 deletions
diff --git a/functions/g.fish b/functions/g.fish
deleted file mode 100644
index cfd2b64..0000000
--- a/functions/g.fish
+++ /dev/null
@@ -1 +0,0 @@
-alias g='cd ~/git'
diff --git a/functions/humanize_duration.fish b/functions/humanize_duration.fish
deleted file mode 100644
index eeb999f..0000000
--- a/functions/humanize_duration.fish
+++ /dev/null
@@ -1,19 +0,0 @@
-function humanize_duration -d "Make a time interval human readable"
- command awk '
- function hmTime(time, stamp) {
- split("h:m:s:ms", units, ":")
- for (i = 2; i >= -1; i--) {
- if (t = int( i < 0 ? time % 1000 : time / (60 ^ i * 1000) % 60 )) {
- stamp = stamp t units[sqrt((i - 2) ^ 2) + 1] " "
- }
- }
- if (stamp ~ /^ *$/) {
- return "0ms"
- }
- return substr(stamp, 1, length(stamp) - 1)
- }
- {
- print hmTime($0)
- }
- '
-end