This commit is contained in:
pvincent
2026-08-12 12:30:58 +04:00
parent e449a0734f
commit b537c7bc36
3 changed files with 21 additions and 3 deletions
+9
View File
@@ -23,6 +23,9 @@ Any feedback appreciated: [contact@artcode.re](mailto:contact@artcode.re)
* [x] smart prompt
* [x] git, failure aware
* [x] vimrc
* [x] ghostty
* [x] terminfo
* [x] global config
* [x] miaou-bash
* [x] friendly error message
* [x] stacktrace
@@ -42,6 +45,12 @@ Any feedback appreciated: [contact@artcode.re](mailto:contact@artcode.re)
`miaou-bash --uninstall && exec bash`
## initiate
Rk: useful when timezone has changed or ghostty command has been installed aftwerwards
`miaou-bash --initiate`
## Readline main bindings
```bash
+9 -1
View File
@@ -269,6 +269,10 @@ function self_upgrade {
sudo -E miaou-bash "$MIAOU_BASH_DIR"/lib/self-upgrade.bash
}
function initiate {
sudo -E miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
}
function uninstall {
sudo -E miaou-bash "$MIAOU_BASH_DIR"/lib/uninstall.bash
}
@@ -612,7 +616,7 @@ function cleanup {
}
function usage {
echo "$(basename "$0") <SCRIPT> [...SCRIPT_ARGS] | --version | --help | --self-upgrade | --uninstall"
echo "$(basename "$0") <SCRIPT> [...SCRIPT_ARGS] | --version | --help | --self-upgrade | --initiate | --uninstall"
}
function parse_options {
@@ -626,6 +630,10 @@ function parse_options {
self_upgrade
builtin exit
;;
--initiate)
initiate
builtin exit
;;
--uninstall)
uninstall
builtin exit
+3 -2
View File
@@ -93,8 +93,9 @@ function link_config_files {
link_etc inputrc # last command required to detect successful installation
}
function bind_inputrc {
function force_reload {
bind -f /etc/inputrc 2>/dev/null # arch: dismiss harmless warning
exec bash
}
function in_azerty_zone {
@@ -174,4 +175,4 @@ rm_bashrc_skeleton
fix_terminfo_ghostty
ghostty_global_config
link_config_files
bind_inputrc
force_reload