New comment by Anachron on void-packages repository https://github.com/void-linux/void-packages/issues/45239#issuecomment-1649362253 Comment: Just export some functions inside your `.bash_profile`. Example: ```sh #!/bin/sh cdw() { w=$(which "${1}" 2>/dev/null) if test -z "${w}"; then 2>&1 printf 'Error: %s could not be found.\n' "${1}" return 1 fi cd $(dirname "${w}") } export -f cdw vimw() { w=$(which "${1}" 2>/dev/null) if test -z "${w}"; then 2>&1 printf 'Error: %s could not be found.\n' "${1}" return 1 fi vim "${w}" } export -f vimw filew() { w=$(which "${1}" 2>/dev/null) if test -z "${w}"; then 2>&1 printf 'Error: %s could not be found.\n' "${1}" return 1 fi file "${w}" } export -f filew gitw() { w=$(which "${1}" 2>/dev/null); shift if test -z "${w}"; then 2>&1 printf 'Error: %s could not be found.\n' "${1}" return 1 fi git --git-dir "$(dirname ${w})/.git" ${@} } export -f gitw ```