initiate
This commit is contained in:
@@ -23,6 +23,9 @@ Any feedback appreciated: [contact@artcode.re](mailto:contact@artcode.re)
|
|||||||
* [x] smart prompt
|
* [x] smart prompt
|
||||||
* [x] git, failure aware
|
* [x] git, failure aware
|
||||||
* [x] vimrc
|
* [x] vimrc
|
||||||
|
* [x] ghostty
|
||||||
|
* [x] terminfo
|
||||||
|
* [x] global config
|
||||||
* [x] miaou-bash
|
* [x] miaou-bash
|
||||||
* [x] friendly error message
|
* [x] friendly error message
|
||||||
* [x] stacktrace
|
* [x] stacktrace
|
||||||
@@ -42,6 +45,12 @@ Any feedback appreciated: [contact@artcode.re](mailto:contact@artcode.re)
|
|||||||
|
|
||||||
`miaou-bash --uninstall && exec bash`
|
`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
|
## Readline main bindings
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+9
-1
@@ -269,6 +269,10 @@ function self_upgrade {
|
|||||||
sudo -E miaou-bash "$MIAOU_BASH_DIR"/lib/self-upgrade.bash
|
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 {
|
function uninstall {
|
||||||
sudo -E miaou-bash "$MIAOU_BASH_DIR"/lib/uninstall.bash
|
sudo -E miaou-bash "$MIAOU_BASH_DIR"/lib/uninstall.bash
|
||||||
}
|
}
|
||||||
@@ -612,7 +616,7 @@ function cleanup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function usage {
|
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 {
|
function parse_options {
|
||||||
@@ -626,6 +630,10 @@ function parse_options {
|
|||||||
self_upgrade
|
self_upgrade
|
||||||
builtin exit
|
builtin exit
|
||||||
;;
|
;;
|
||||||
|
--initiate)
|
||||||
|
initiate
|
||||||
|
builtin exit
|
||||||
|
;;
|
||||||
--uninstall)
|
--uninstall)
|
||||||
uninstall
|
uninstall
|
||||||
builtin exit
|
builtin exit
|
||||||
|
|||||||
+3
-2
@@ -93,8 +93,9 @@ function link_config_files {
|
|||||||
link_etc inputrc # last command required to detect successful installation
|
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
|
bind -f /etc/inputrc 2>/dev/null # arch: dismiss harmless warning
|
||||||
|
exec bash
|
||||||
}
|
}
|
||||||
|
|
||||||
function in_azerty_zone {
|
function in_azerty_zone {
|
||||||
@@ -174,4 +175,4 @@ rm_bashrc_skeleton
|
|||||||
fix_terminfo_ghostty
|
fix_terminfo_ghostty
|
||||||
ghostty_global_config
|
ghostty_global_config
|
||||||
link_config_files
|
link_config_files
|
||||||
bind_inputrc
|
force_reload
|
||||||
|
|||||||
Reference in New Issue
Block a user