diff --git a/.dotfiles/helpers/multiselect.sh b/.dotfiles/helpers/multiselect.sh index d618295..4a4a0cb 100644 --- a/.dotfiles/helpers/multiselect.sh +++ b/.dotfiles/helpers/multiselect.sh @@ -18,8 +18,11 @@ function multiselect() { key_input() { local key IFS= read -rsn1 key 2>/dev/null >&2 + echo $key >> /tmp/test.log if [[ $key = "" ]]; then echo enter; fi if [[ $key = $'\x20' ]]; then echo space; fi + if [[ $key = "j" ]] ; then echo down; fi + if [[ $key = "k" ]] ; then echo up; fi if [[ $key = $'\x1b' ]]; then read -rsn2 key if [[ $key = [A ]]; then echo up; fi diff --git a/.dotfiles/install/asdf.sh b/.dotfiles/install/asdf.sh index 0483c2f..877cf5a 100755 --- a/.dotfiles/install/asdf.sh +++ b/.dotfiles/install/asdf.sh @@ -1,12 +1,8 @@ if [ -d ~/.asdf ] ; then - echo " ✓ asdf already installed" - else - git clone --quiet https://github.com/asdf-vm/asdf.git ~/.asdf > /dev/null cd ~/.asdf git checkout --quiet "$(git describe --abbrev=0 --tags)" > /dev/null . asdf.sh - fi