Commit Graph

54 Commits (46c8f5a9b40fb1b425768fc093dcd4a2f6d9929d)

Author SHA1 Message Date
David Kebler 7d52d09175 add kernel module for creating links after upgrading kernel 2024-12-17 10:10:49 -08:00
David Kebler fd8a9a7c98 fix copy and bindfs 2024-12-07 13:42:53 -08:00
David Kebler c6c8f9876b refactor snapshot_send and mvlnbk
add clean_locale
2024-11-04 07:01:55 -08:00
David Kebler fb7c510d2b refactor way list command functions 2024-10-17 12:33:40 -07:00
David Kebler 263ba5296d add dir2subvol function to convert directory to subvolume
fix - bug in copy function where collected arguments were erased.
2024-10-17 11:24:08 -07:00
David Kebler 9f677a3303 use -xdev and not -mount for linux find as it works for busybox and -mount is deprecated
add latest functions to btrbk library
2024-09-15 18:21:32 -07:00
David Kebler 1505382d97 improved the bindfs library to make it easier to mount and unmount
now will call nemo at the mountpoint as well
2024-08-03 14:49:44 -07:00
David Kebler 95a5f21abd don't attempt environment substitution if no variable in file 2024-05-25 13:40:07 -07:00
David Kebler a41e477d8f added couple basic aliases
fixed copy arguments bug
added GIT url file to load after done
2024-04-19 13:53:10 -07:00
David Kebler 057b8ad9dd fix again suppress latest links. avoid remote targets
fix created error where no sshargs does not add ssh command
2024-03-20 11:26:55 -07:00
David Kebler d3802572b5 supress btrbk_run lastest link error
fix copy: only add ssh for remote
2024-03-20 11:09:07 -07:00
David Kebler 94984e969d add commandline git discard alias
copy, change m from merge to i, insert.  use m and M for mirror
add support functions for specfic cases copy
2024-03-13 10:13:08 -07:00
David Kebler c42c9777a9 add btrbk_named drop latest_clone
add btrfs_clone and mp_subvol
fix but s: to s  in copy options
add several path string helper function
2024-03-05 13:50:09 -08:00
David Kebler 61e61ac249 add cleaning to filesystem copy 2024-03-01 15:51:07 -08:00
David Kebler 3a246c71cd use which instead of command -v
added unlocku to alias
added new way better copy module/function based on rsync
  copies local and remote
2024-03-01 15:01:47 -08:00
David Kebler e538400018 update rootfs excludes
preserve environment when installing with sudo
2024-02-27 18:53:59 -08:00
David Kebler ca8ab01a43 add rclone function 2024-02-26 12:30:19 -08:00
David Kebler 82af909b7a add sync module
fix remote spaces in helpers
fix few errors in install library
2024-02-24 08:01:41 -08:00
David Kebler 398ae39a07 fixing bundler
move some module code to new modules
2024-02-16 23:50:36 -08:00
David Kebler d77c046c0b clean up basic loading 2024-02-12 13:11:40 -08:00
David Kebler 39d6cc755e rearrange some module locations
auto load btrfs modules if btrfs-progs and btrbk are installed
2024-02-12 12:53:25 -08:00
David Kebler 9157278eb0 ignore .inst and .uninst files
add systemd loginctl commands
btrfs find subvolumes
2023-12-14 13:59:24 -08:00
David Kebler f2a9d64eab use command -v instead of which 2023-03-20 10:37:45 -07:00
David Kebler a1b3781c40 add functions
distro_sudo_group
change_user_password
user_group_id
add_recovery_user
rename_user
2023-03-19 11:35:13 -07:00
David Kebler 9c379eda85 minor fix dir_copy 2023-03-12 10:46:05 -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
David Kebler 0d4481e291 refactor: more new session loading to anything under "load" subirectory (by default) still can add additional loading directories as before.
refactor of debug module using BASH_DEBUG as filename in user shell suddirectory  logs/

improved bindfs and btrfs modules
2023-02-22 11:39:34 -08:00
Kebler Network System Administrator 99c01d4bb7 add sudo module with Sudo function for running functions or alias as sudo
add install-shell-repo library for easy install of other shell repos (host, network)
2023-02-15 07:08:24 -08:00
Kebler Network System Administrator 2454f268ca minor modules cleanup 2023-02-07 11:21:38 -08:00
Kebler Network System Administrator fa65a9f4a4 add basic user functions to get id name and to do basic checks is_uer is_user_group is_user_sudo 2023-02-07 09:26:05 -08:00
Kebler Network System Administrator bcba8bbfd4 refactor shell install scripts
add bindfs and new dir_copy script
2023-01-18 16:50:31 -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 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 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 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 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 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 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 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 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