Skip to content

Instantly share code, notes, and snippets.

@ormaaj
Last active September 11, 2023 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ormaaj/13222727e2d1f3991a8ddde4f479abc6 to your computer and use it in GitHub Desktop.
Save ormaaj/13222727e2d1f3991a8ddde4f479abc6 to your computer and use it in GitHub Desktop.
~/.bashrc ~/.kshrc
#!/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