Last active
September 11, 2023 00:16
-
-
Save ormaaj/13222727e2d1f3991a8ddde4f479abc6 to your computer and use it in GitHub Desktop.
~/.bashrc ~/.kshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/false | |
\typeset -a bool; bool+=([1]=) | |
\typeset -n sh_file | |
\test -v KSH_VERSION | |
sh_file=${bool[$?]+bash_source[0]}${bool[!$?]+.sh.file} | |
dotFilesPath=$(\findmnt -umlnfo target -O subvol=/vol/dotfiles "PARTUUID=$(\findmnt -umlnfo partuuid -T /)") | |
[[ $sh_file == ?(*/)shell ]] | |
\source -- ${bool[!$?]+"$sh_file"}${bool[$?]+"${dotFilesPath}/common/home/shell"}/functions | |
rc_main "$@" | |
# vim: set ft=bash fenc=utf-8 ff=unix ts=4 sw=4 noet : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment