aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-20 15:53:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-20 15:53:39 +1200
commita143ce9c38942ebe2245ad0e7c33462087692809 (patch)
treeb86f9f8882c043cd074f6e061086f92cc653823b /bash/bashrc.d
parentAdd an issue about vr() (diff)
downloaddotfiles-a143ce9c38942ebe2245ad0e7c33462087692809.tar.gz
dotfiles-a143ce9c38942ebe2245ad0e7c33462087692809.zip
Port lhn() to POSIX sh
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/lhn.bash7
1 files changed, 0 insertions, 7 deletions
diff --git a/bash/bashrc.d/lhn.bash b/bash/bashrc.d/lhn.bash
deleted file mode 100644
index 89c6f5da..00000000
--- a/bash/bashrc.d/lhn.bash
+++ /dev/null
@@ -1,7 +0,0 @@
-# Print the history number of the last command
-lhn () {
- local last
- last=$(fc -l -1) || return
- [[ -n $last ]] || return
- printf '%u\n' "${last%%[^0-9]*}"
-}