Add syncthing and cp alias

This commit is contained in:
2024-07-26 14:53:10 +01:00
parent eeb1c0d2e7
commit 8d9f78f695
2 changed files with 19 additions and 4 deletions

View File

@@ -87,6 +87,7 @@ alias ll='ls -lhi'
alias ta='tmux attach' alias ta='tmux attach'
alias t='tmux' alias t='tmux'
alias v='nvim' alias v='nvim'
alias cp='rsync -ah --progress'
set completion-ignore-case On set completion-ignore-case On
@@ -97,4 +98,3 @@ set completion-ignore-case On
export OFLAGS="--ozone-platform-hint=auto" export OFLAGS="--ozone-platform-hint=auto"
export PATH=$PATH:/home/trude/.local/bin export PATH=$PATH:/home/trude/.local/bin

View File

@@ -18,7 +18,8 @@ dialog --erase-on-exit \
"5" "Install GitHub CLI" "off"\ "5" "Install GitHub CLI" "off"\
"6" "Install Ollama" "off"\ "6" "Install Ollama" "off"\
"7" "Install Apps (Enables Flatpak)" "on"\ "7" "Install Apps (Enables Flatpak)" "on"\
"8" "Install Tailscale (VPN)" "on" 2> choice.tmp "8" "Install Tailscale (VPN)" "on"\
"9" "Install Syncthing" "on" 2> choice.tmp
main_menu=$( cat choice.tmp ) main_menu=$( cat choice.tmp )
rm choice.tmp rm choice.tmp
@@ -213,4 +214,18 @@ for selection in $main_menu; do
curl -fsSL https://tailscale.com/install.sh | sh curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up sudo tailscale up
fi fi
if [ "$selection" = "9" ]; then
clear
echo "-------------------------"
echo "--- Install Syncthing ---"
echo "-------------------------"
echo
echo
sudo apt install syncthing
systemctl --user enable syncthing.service
systemctl --user start syncthing.service
xdg-open "http://127.0.0.1:8384/" &
fi
done done