Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a new 't' command to toggle showing internal devices #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions bashmount
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,14 @@ print_commands() {
printf '\n\n'
print_separator_commands
printf '%s' " ${BLUE}e${ALL_OFF}: eject"
printf '%s' " ${BLUE}i${ALL_OFF}: info"
printf '%s' " ${BLUE}m${ALL_OFF}: mount"
printf '%s' " ${BLUE}o${ALL_OFF}: open"
printf '%s' " ${BLUE}u${ALL_OFF}: unmount"
printf '%s' " ${BLUE}i${ALL_OFF}: info"
printf '%s' " ${BLUE}m${ALL_OFF}: mount"
printf '%s' " ${BLUE}o${ALL_OFF}: open"
printf '%s' " ${BLUE}u${ALL_OFF}: unmount"
printf '%s' " ${BLUE}[Enter]${ALL_OFF}: refresh"
printf '\n\n'
printf '%s' " ${BLUE}[Enter]${ALL_OFF}: refresh"
printf '%s' " ${BLUE}a${ALL_OFF}: unmount all"
printf '%s' " ${BLUE}t${ALL_OFF}: toggle internal"
printf '%s' " ${BLUE}a${ALL_OFF}: unmount all"
printf '%s' " ${BLUE}q${ALL_OFF}: quit"
printf '%s' " ${BLUE}?${ALL_OFF}: help"
printf '\n\n'
Expand Down Expand Up @@ -819,6 +820,7 @@ select_action() {
fi
else
case "$action" in
"t") show_internal=$(( ! show_internal )) ;;
"a")
if (( ! ${#mounted[*]} )); then
error "No devices mounted."
Expand Down