X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/7d7a2fc968adc6124589e96d3bd8da96babd888f..ca3a844af240ca87882522d14b530e0f1a6327ef:/.bashrc diff --git a/.bashrc b/.bashrc index 6b4d476..7e81de3 100644 --- a/.bashrc +++ b/.bashrc @@ -87,6 +87,10 @@ aur() { cd ${1} } +function t { + cd $(mktemp -d /tmp/$1.XXXX) +} + # separate alias definitions file, if exists if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases @@ -102,3 +106,16 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +# source Guix shell config dirs, for vte.sh and bash completions +GUIX_PROFILES=("${HOME}/.guix-profile" + "${HOME}/.config/guix/current") +for profile in "${GUIX_PROFILES[@]}"; do + for dir in "${profile}/etc/bash_completion.d" "${profile}/etc/profile.d"; do + if [ -d "${dir}" ]; then + for f in "${dir}"/*; do + . $f + done + fi + done +done