Kebler Network System Administrator
2aa4fa89a7
feat: substitute environment into a file using envsubst
...
feat build_file no added file comment by default use -f to enable
2022-12-26 10:21:30 -08:00
Kebler Network System Administrator
4318f9ca89
feat: add environment file helper functions
2022-12-24 12:34:03 -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
e02a7c71fb
added add-ppa module. use instead of apt-add repository.
2022-10-24 18:14:58 -07:00
Kebler Network System Administrator
78ef8d0a88
add functions osinfo adduserid () fsudo () to basic
2022-10-24 18:13:58 -07:00
Kebler Network System Administrator
10fb48069b
add module copy module_cp to module library
2022-10-24 18:12:33 -07:00
Kebler Network System Administrator
9d7e07a113
load only base and any host when coming from ssh
2022-05-02 10:46:41 -07:00
Kebler Network System Administrator
1778ddca3e
add modules from scripting subdirectory
2022-04-06 12:27:26 -07:00
Kebler Network System Administrator
ef8afa39c7
details for this commit to come
2022-03-28 10:02:17 -07:00
Kebler Network System Administrator
0d088cbcab
added BASH_SHELL_DEV to list directories to look for modules
2022-03-09 17:02:39 -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
51f73ccc02
feat: add module_print to module.lib will print the source of requested module
2022-02-26 17:34:33 -08:00
Kebler Network System Administrator
a31e294a87
feat: add source bundle function which will convert any module_load command into the prepended source.
...
refactor: dirs module, cleanup
feat: added prepend_file function to file module
2022-02-26 17:19:37 -08:00
Kebler Network System Administrator
d0209fc742
moved and refactored network-dirs and shell-process-directory
2022-02-21 11:54:03 -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
3a5d3eba1c
add yaml module, refactor path and helpers for isAbsPath
2021-08-29 09:42:51 -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
4ad1946952
added cyan to machine color in prompt
...
added write permission flag to acl script
added pass through options from share_dir to the acladduser
2021-04-14 10:51:17 -07:00
Kebler Network System Administrator
5d2ccc7c4f
reworked/improved setup files
2021-03-09 13:39:40 -08:00
Kebler Network System Administrator
256186376d
refactor cprs (rsync) for ACL and using sudo
2021-02-18 07:31:28 -08:00
Kebler Network System Administrator
ca7d7a5a0d
added acl and dirs modules
2021-02-11 18:32:57 -08:00
Kebler Network System Administrator
a21b588d08
added group_add and user_reload to basic functions
...
switched to acl functions loaded via module load
rysnc add ignore cache
add chmod_dirs to helpers
2021-02-11 18:29:28 -08: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
Kebler Network System Administrator
de43f28f78
refactored startup script, removed as function so it can be sourced immediately, needed this so that startup scripts sourced can export to main login environment.
...
changed startup in setup in /etc/profile.d accordingly so it sources intead of calls async for the same reason
add notify module with login_notify to delay notification until user is logged in
added lag to alias, and made load debug module is load in file module.
2021-01-30 11:58:19 -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
f88453f6ca
allowed relative path in path functions even though directory may not exist.
2020-12-26 12:54:47 -08:00
David Kebler
28bce82117
fix globbing problem in _find function
2020-12-26 12:18:27 -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
1304c3afe7
moved ssh session sourcing the ssh/session directory
...
backup script picks up BASH_SHELL_BASE from script directory
2020-12-02 10:26:41 -08:00
David Kebler
ff1d4c11be
don't run profile startup script if user is logged in via su command
2020-11-29 09:24:51 -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
01b8894dd2
added backup script, improved deploy script and seperated deplooy for user to deploy-user script. Will set BASH_SHELL_BASE in /etc/profile based on where deploy script is launched.
2020-11-23 12:21:20 -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
David Kebler
e25e44a98d
added setup directory with set of user and system source files that can be copied in new machine
...
changed setup.sh to load.sh
startup only loads system repos by default and allows passing directory argument
2020-11-10 14:09:08 -08:00
David Kebler
378672e974
some small fixes to block module
...
added confirm module
2020-11-07 22:21:27 -08:00
David Kebler
9fb8af9a09
fix grep deprecation, change name to get block to list block, refactor verbosity on module functions
2020-11-07 10:01:17 -08:00
David Kebler
189ba95076
add modules function to find and load modules
...
refactored functions_list to assist with finding functions within a script file
refactored prompt PS1 setup and added colors variables
added block module to base which will write and edit a block of lines to any text file
improve setup.sh, now can be reused for other shell repos to default source
2020-11-06 14:24:10 -08:00
David Kebler
8d8ade7810
Initial commit of new shell sourcing system - base directory
2020-11-03 12:07:49 -08:00
David Kebler
547074314a
initial commit
2020-11-03 12:07:03 -08:00