diff --git a/README.md b/README.md index 247879e..15fba58 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ this stage, the installation process only supports 2 distribution families: Be aware MIAOU-BASH (uppercase) refers to the whole package itself. Meanwhile `miaou-bash` (downcase) refers to the only one, yet useful, utility script. +To fulfill maximum expectations, we do recommend installing the *Ghostty* +terminal app. This is free software and licensed as: Affero GPL v3 + Any feedback appreciated: [contact@artcode.re](mailto:contact@artcode.re) @@ -32,6 +34,7 @@ Any feedback appreciated: [contact@artcode.re](mailto:contact@artcode.re) * [x] tools * [x] semver-git_tag * [x] fqdn + * [ ] ... ## install @@ -45,12 +48,6 @@ 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 diff --git a/doc/index.md b/doc/index.md index b7cc8cc..0585204 100644 --- a/doc/index.md +++ b/doc/index.md @@ -1,42 +1,11 @@ # Documentation +* initiate * [Bash Tips](./bash_tips.md) -* [Development Mode](./development.md) -* [TODO](./todo.md) +* [todo](./todo.md) -## prevent last false +## initiate -function body should not end up with a ternary statement +Rk: useful when timezone has changed or ghostty command has been installed aftwerwards -### wrong last - -Compound of 2 'false' statement returns false. - -```bash -[[ : ]] && [[ : ]] -``` - -### right last - -```bash -[[ : ]] && [[ : ]] || true -``` - -## arithmetic issue - -last (++) statement does not complete successfully! - -### wrong ++ - -```bash -count=0 -(( ++count )) # ok -(( ++count )) # last statement in function returns false -``` - -### right ++ - -```bash -count=0 -count=$((count+1)) -``` +`miaou-bash --initiate` diff --git a/lib/initiate.bash b/lib/initiate.bash index d33c4d2..a7251b3 100644 --- a/lib/initiate.bash +++ b/lib/initiate.bash @@ -58,11 +58,11 @@ function link_etc { function arch_vimrc { mkdir -p /etc/vim if ! grep -q '/etc/vim/vimrc.local' /etc/vimrc; then - cat >>/etc/vimrc <<-EOF - " Source a global configuration file if available - if filereadable("/etc/vim/vimrc.local") - source /etc/vim/vimrc.local - endif + cat >>/etc/vimrc <