Commit Graph

29 Commits (4b957f1e4bd21a923ac9e5f2734855438ab004d9)

Author SHA1 Message Date
David Kebler 856efb5e35 refactor module library
move non essential functions to extra module
minimize essential modules functions to module.base and load that
2023-12-17 12:54:45 -08:00
David Kebler b9f98d36f4 moving host and network directories out of /any 2023-12-14 21:09:19 -08:00
David Kebler ba63cf586c fix: use /etc/hostname 2023-03-19 12:12:18 -07:00
David Kebler 24e229f993 fix handle no /etc/host file like inside docker container 2023-03-19 12:08:01 -07:00
David Kebler 11ec123c0f fix handle no /etc/host file like inside docker container 2023-03-19 11:52:38 -07:00
David Kebler 49fd2bcfa6 don't use hostnamectl for compatibility 2023-03-19 11:48:28 -07:00
David Kebler c6dc8e4487 moved reload_user, add editor function, add wheel to groups check
add follow links option to _find
user hostnamectl to get host name
2023-02-23 10:03:47 -08:00
Kebler Network System Administrator 1bce77c432 refactor user install and how $BASH_SHELL_USER_DIR is exported early. 2023-01-20 17:20:19 -08:00
Kebler Network System Administrator 96127ca89f move environment functions to env module from file module and helpers module
feat env_subs_file and support functions now operational
added shell_run function to module.lib so scripts can be run with the otherwise not loaded current shell
added remove empty lines function to helpers
2023-01-05 12:36:23 -08:00
Kebler Network System Administrator e2cade08c7 add fileext function to helpers 2022-12-31 23:28:18 -08:00
Kebler Network System Administrator bf62d67339 refactor shell environmnet so user can have create customized shell.env
refactor default loading of networks
2022-12-30 09:18:39 -08:00
Kebler Network System Administrator 3e8be4da72 feat: separating network repo loading from base/host/user 2022-12-23 08:24:33 -08:00
Kebler Network System Administrator 9988dd1ed1 feat: clean up shell.env, improved comments, added in BAHS_SHELL_DEV repo /opt/shell default
feat: add ability to follow link -L when finding modules.  Make is easier to have things loaded and still available for non-interactive shells via module_load
feat: profile,  better comments, refactored to have safe mode where no shell is loaded
2022-03-01 22:45:40 -08:00
Kebler Network System Administrator 784e6711a8 add: tools to shell directory includes
feat: refactor repo organization that include corresponding changes to load script, module library plus shell.env
add: python based yaml parser
add:  functions isDir isFile to corresponding modules
2022-02-20 12:44:29 -08:00
Kebler Network System Administrator ec601fbb15 fix: change back to just 'shell' not .shell for user default shell directory as . is ignored by default,
feat: added 'user_exists' function
2021-12-31 17:38:58 -08:00
Kebler Network System Administrator a15a290328 set default user subdirectory to .shell
get BASH_SHELL_BASE in both profile and bash.bashrc
2021-12-29 21:09:36 -08:00
Kebler Network System Administrator 75297c7cdb additional network shell directories now set by a .network file under the $HOSTNAME host shell directory (for all users) or the same within the USER shell directory for per user networks. Network proceeded by ! indicates the home/lan network of that machine.
Also added -t to _find for setting the search type.
2021-11-20 21:20:39 -08:00
Kebler Network System Administrator 2ec857b1c2 added add-repo-key function
added skg for killing unowned processes by grep
add 312 network to shell
2021-10-28 12:05:56 -07:00
Kebler Network System Administrator c8940fb4ea look for bash command and set to SHELL instead of looking for bash in SHELL environment 2021-04-19 17:25:22 -07:00
Kebler Network System Administrator 3656f1420e moved ssh to host repo.
added acl function and alias - still work working on them.
in shell.env allowed module.lib to get loaded for non-interactive shells so that can access modules without all the other stuff of login shell.
prepend /opt/bin and .local/bin so they take precedence.
2021-02-05 13:10:18 -08:00
David Kebler d6dfa7753a add additional ignores for example, template, tmpl extensions
refactor shell environment to pick up relative host and network directories via default (common parent with base)
2021-01-14 14:18:56 -08:00
David Kebler fdd2f05198 turn off non-interactive shell sourcing
move options env to top of list
add interactive echo for ssh remote logins
2021-01-14 12:55:47 -08:00
David Kebler 22b3c0cc36 added debug module with debug function - a first cut
load.sh now loads debug module or a noop
file library, file.lib
   - refactored _find function, added alias superceed
       * added h option to include .hidden files
       *
   - added build_file function to append file to another
refactored comment and uncomment functions
added find_mountpoint function to filesystem module
added ssh_config builder function and ssh override to use it.
added github module with binary release fetch function (needs work)
2020-12-03 20:51:14 -08:00
David Kebler ffecdd9501 add non interactive logging in load.sh
can load aliases via env variable
2020-11-27 10:30:37 -08:00
David Kebler cae3a94dd8 add support for sourcing for remote shell via ssh. Works for both interactive and non-interactive
added support for alises in non-interactive shell via bash.bashrc
add TODO markdown file to track desired changes
2020-11-23 15:14:18 -08:00
David Kebler 527636a48e added deploy for system/user/root shell files 2020-11-21 08:56:03 -08:00
David Kebler c436c07493 refactored to use ignore and include files for finding files to source
moved source_dir to file.lib.
refactored to use directory list and a loop for shell directory processing
added array for networks so vpn networks be added for sourcing.
2020-11-20 15:47:38 -08:00
David Kebler 5e45c1f23a refactored script sourcing exludes to .bash-shell-ignore file
refacted load.sh and startup.sh accordingly and also used loop to process the shell repos
switched from export to declare for module.lib
allows multiple network domains to be set in shell.env.  This allows primary and vpn setups
moved docker and language files out of base
added comment functions
2020-11-18 15:32:09 -08:00
David Kebler 0ac5906eee refactor the way the module library is loaded
added startup script callable from profile.d
renamed setup.sh to load.sh
added rsync copy function cprs
added shell.env that is called by /etc/profile to set up access to this  and related repos
2020-11-13 10:25:04 -08:00