diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 13:23:28 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 13:23:53 +1300 |
commit | 98f8df403360e5707b6de6c734c95f9ac759feb6 (patch) | |
tree | ca3239a39e09231b03d9b2099865f3233c5ebd19 /sh/shrc.d | |
parent | Request version with "ver" shortcut not prompt (diff) | |
download | dotfiles-98f8df403360e5707b6de6c734c95f9ac759feb6.tar.gz dotfiles-98f8df403360e5707b6de6c734c95f9ac759feb6.zip |
Remove lhn()
Not portable, and I never use it anyway
Diffstat (limited to 'sh/shrc.d')
-rw-r--r-- | sh/shrc.d/lhn.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sh/shrc.d/lhn.sh b/sh/shrc.d/lhn.sh deleted file mode 100644 index 15fced6e..00000000 --- a/sh/shrc.d/lhn.sh +++ /dev/null @@ -1,12 +0,0 @@ -# Print the history number of the last command -# "fc" is specified by POSIX, but does not seem to be in dash, so its being -# included here rather than in e.g. ~/.bashrc.d is a bit tenuous. -lhn () { - if ! command -v fc >/dev/null 2>&1 ; then - printf 'lhn(): fc: command not found\n' - return 1 - fi - set -- "$(fc -l -1)" - [ -n "$1" ] || return - printf '%u\n' "$1" -} |