Skip to content

Commit

Permalink
simplified the printing in jump to parent
Browse files Browse the repository at this point in the history
  • Loading branch information
egurapha committed Feb 12, 2025
1 parent 25426d7 commit 808d3ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,8 @@ function shunpo_jump_to_parent_dir() {
for ((i = start_index; i < end_index; i++)); do
if [[ $i -eq $((end_index - 1)) && $current_page -eq $((last_page - 1)) ]]; then
echo -e "[${SHUNPO_BOLD}${SHUNPO_ORANGE}$((i - start_index))${SHUNPO_RESET}] $(basename ${parent_dirs[i]})"
elif [[ $i -eq $start_index && $current_page -eq 0 ]]; then
echo -e "[${SHUNPO_BOLD}${SHUNPO_ORANGE}$((i - start_index))${SHUNPO_RESET}] $(basename ${parent_dirs[i]})"
else
echo -e "[${SHUNPO_BOLD}${SHUNPO_ORANGE}$((i - start_index))${SHUNPO_RESET}] $(basename ${parent_dirs[i]})/"
echo -e "[${SHUNPO_BOLD}${SHUNPO_ORANGE}$((i - start_index))${SHUNPO_RESET}] /$(basename ${parent_dirs[i]})"
fi
done

Expand Down

0 comments on commit 808d3ca

Please sign in to comment.