add bash completion to os for survey and pm commands
This commit is contained in:
@@ -5,19 +5,40 @@ echo "**** Setting up custom desktop shortcuts ****"
|
||||
# Ensure the Desktop folder exists for the default 'abc' user
|
||||
mkdir -p /config/Desktop
|
||||
|
||||
cat <<EOF > /config/Desktop/MyGoApp.desktop
|
||||
cat <<EOF > /config/Desktop/LazyPM.desktop
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=PM Survey
|
||||
Comment=Launch my custom Go binary
|
||||
Comment=Launch the Prompt Manageragment Survey
|
||||
Exec=/usr/local/bin/survey start
|
||||
Icon=utilities-terminal
|
||||
Terminal=true
|
||||
Categories=Utility;
|
||||
EOF
|
||||
|
||||
chmod +x /config/Desktop/MyGoApp.desktop
|
||||
chown abc:abc /config/Desktop/MyGoApp.desktop
|
||||
chmod +x /config/Desktop/LazyPM.desktop
|
||||
chown abc:abc /config/Desktop/LazyPM.desktop
|
||||
|
||||
echo "**** Desktop setup complete ****"
|
||||
echo "**** Setting default browser to Chromium... ****"
|
||||
|
||||
xdg-settings set default-web-browser chromium.desktop
|
||||
|
||||
echo "**** Setting default handlers for HTTP and HTTPS... ****"
|
||||
xdg-mime default chromium.desktop x-scheme-handler/http
|
||||
xdg-mime default chromium.desktop x-scheme-handler/https
|
||||
|
||||
echo "**** Setting up bash completion... ****"
|
||||
source /etc/bash/bash_completion.sh
|
||||
|
||||
echo "Setting Alacritty as default terminal..."
|
||||
mkdir -p /config/.config/xfce4
|
||||
|
||||
cat > /config/.config/xfce4/helpers.rc <<EOF
|
||||
TerminalEmulator=alacritty.desktop
|
||||
TerminalEmulatorDismissed=true
|
||||
EOF
|
||||
|
||||
chown -R abc:abc /config/.config
|
||||
|
||||
echo "**** Desktop setup complete ****"
|
||||
Reference in New Issue
Block a user