|
|
@ -128,7 +128,6 @@ function link_config_files { |
|
|
link_etc vim/vimrc.local |
|
|
link_etc vim/vimrc.local |
|
|
fi |
|
|
fi |
|
|
link_etc profile.d/20-miaou-bash.sh |
|
|
link_etc profile.d/20-miaou-bash.sh |
|
|
link_etc sudoers.d/miaou-bash |
|
|
|
|
|
link_etc bash.bashrc |
|
|
link_etc bash.bashrc |
|
|
link_etc inputrc # last command required to detect successful installation |
|
|
link_etc inputrc # last command required to detect successful installation |
|
|
} |
|
|
} |
|
|
@ -204,6 +203,13 @@ function link_miaou_bash { |
|
|
sudo ln -sf "$MIAOU_BASH_DIR"/bin/miaou-bash /usr/bin/ |
|
|
sudo ln -sf "$MIAOU_BASH_DIR"/bin/miaou-bash /usr/bin/ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function create_sudoers { |
|
|
|
|
|
if [[ ! -f /etc/sudoers.d/miaou-bash ]]; then |
|
|
|
|
|
echo 'Defaults:%sudo env_keep += "MIAOU_BASH_DIR"' | sudo tee /etc/sudoers.d/miaou-bash |
|
|
|
|
|
sudo chmod 440 /etc/sudoers.d/miaou-bash |
|
|
|
|
|
fi |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
# MAIN |
|
|
# MAIN |
|
|
|
|
|
|
|
|
source "$MIAOU_BASH_DIR/lib/functions.bash" |
|
|
source "$MIAOU_BASH_DIR/lib/functions.bash" |
|
|
@ -216,4 +222,5 @@ fix_terminfo_ghostty |
|
|
ghostty_global_config |
|
|
ghostty_global_config |
|
|
link_config_files |
|
|
link_config_files |
|
|
link_miaou_bash |
|
|
link_miaou_bash |
|
|
|
|
|
create_sudoers |
|
|
force_reload |
|
|
force_reload |