diff options
author | Dylan Araps <dylan.araps@gmail.com> | 2018-10-23 16:25:18 +1100 |
---|---|---|
committer | Dylan Araps <dylan.araps@gmail.com> | 2018-10-23 16:25:18 +1100 |
commit | 4557bb8cd5af8c954af3df92ebeb169c1d65af6b (patch) | |
tree | e0d9d6a4ec4e3aedd1ee53bb14781361cfd24094 | |
parent | a9324bdf94ad22cca5f295cc522921b260c6d420 (diff) |
fix shortcut bug
-rwxr-xr-x | fff | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -105,8 +105,8 @@ key() { \~) g="$PWD"; hist; open ~ ;; t) g="$PWD"; hist; open ~/.cache/fff/bin ;; - [1-9]) fa="FFF_FAV${1}"; fa="${!fa%/}" - [[ ${fa:-/} ]] && { g="$PWD"; hist; open "$fa"; } ;; + [1-9]) fa="FFF_FAV${1}"; fa="${!fa}" + [[ $fa ]] && { g="$PWD"; hist; open "${fa%/}"; } ;; q) exit ;; |