From a143ce9c38942ebe2245ad0e7c33462087692809 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 20 Aug 2016 15:53:19 +1200 Subject: Port lhn() to POSIX sh --- bash/bashrc.d/lhn.bash | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 bash/bashrc.d/lhn.bash (limited to 'bash/bashrc.d') 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]*}" -} -- cgit v1.2.3