Add commands and scripts to user. (#7)
* If we're gonig to exit then we should be more sure about our messaging. * Only have GIMP installed from Flatpak. * Playbook is causing Ubuntu 20.04 to fail. * Define gnome_install.failed since some Ansible versions are picky. * Try again for mad non-Parrot versions of Ansible. * Add debug. * Still trying to make Ubuntu 20.04's Ansible happy. * Fix typos. * Ubuntu does not need to install Dash To Dock. Also ensure `make` is installed on other distros so that the project is compiled. * Remove debug. * Add remount and upgrade commands to RC files. * Copy root scripts to also be for user. * Call the new user script. * Add new commands to rc_common so they're added to the rc files. * Remove update file on Parrot OS.
This commit is contained in:
@ -113,8 +113,36 @@
|
||||
fi
|
||||
curl "https://wttr.in/${1//\ /+}"
|
||||
}
|
||||
PS1: |
|
||||
export PS1='[\u@\h \w]\$ '
|
||||
PS1: export PS1='[\u@\h \w]\$ '
|
||||
remount: alias remount='sudo umount /mnt/*; sudo umount /mnt/*/*; sudo mount -a; echo -e "\nRemount completed!"; mount | grep /mnt'
|
||||
update: |
|
||||
function update() {
|
||||
PROG=$FUNCNAME
|
||||
usage="Usage: $PROG [-y]
|
||||
$PROG is used to run all the system's package manager commands
|
||||
in one swoop. Flow stops if any command returns a failure code.
|
||||
The hope is to run something as easy as 'pacman -Syyu'.
|
||||
-y : Assume yes to any prompts."
|
||||
|
||||
unset OPTIND
|
||||
while getopts ":hy" opt; do
|
||||
case $opt in
|
||||
h) echo -e "$usage"
|
||||
return 0 ;;
|
||||
y) accept="-y" ;;
|
||||
*) echo "ERROR: -$OPTARG is not a recognized option."
|
||||
echo -e "$usage"
|
||||
return 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
{{ update_package_manager }}
|
||||
{{ update_flatpak }}
|
||||
return 0
|
||||
|
||||
echo "$PROG experienced a problem and has aborted."
|
||||
return 1
|
||||
}
|
||||
|
||||
- name: General | Account Management | Users | Files | Common Variable
|
||||
set_fact:
|
||||
@ -127,6 +155,8 @@
|
||||
{{ alias_clean_trash }}
|
||||
{{ function_wttr }}
|
||||
{{ PS1 }}
|
||||
{{ remount }}
|
||||
{{ update }}
|
||||
|
||||
- name: General | Account Management | Users | Files | .bashrc
|
||||
blockinfile:
|
||||
|
Reference in New Issue
Block a user