diff options
author | Kevin Burke <kevin@burke.dev> | 2021-11-09 00:04:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 09:04:10 +0100 |
commit | e86c6f5e7fc9f024a427e2870ab70644b5454725 (patch) | |
tree | bde5878b37dc151ae8643ef0473ea90a0d89a830 /plugins/scd | |
parent | 55682e36920e2ab7633fc6eee11466d3faed0bf8 (diff) | |
download | zsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.tar.gz zsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.tar.bz2 zsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.zip |
style: use `-n` flag in `head` and `tail` commands (#10391)
Co-authored-by: Marc Cornellà <hello@mcornella.com>
Diffstat (limited to 'plugins/scd')
-rwxr-xr-x | plugins/scd/scd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/scd/scd b/plugins/scd/scd index a7db6c265..7e9654b44 100755 --- a/plugins/scd/scd +++ b/plugins/scd/scd @@ -270,7 +270,7 @@ fi # Determine the last recorded directory if [[ -s ${SCD_HISTFILE} ]]; then - last_directory=${"$(tail -1 ${SCD_HISTFILE})"#*;} + last_directory=${"$(tail -n 1 ${SCD_HISTFILE})"#*;} fi # The "record" function adds its arguments to the directory index. |