initial commit

This commit is contained in:
2025-05-23 15:08:44 +02:00
commit e602d503e8
22 changed files with 2408 additions and 0 deletions

18
bin/scripts/install-local.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
source bin/helpers/func.sh
# Create any missing directories/files
touch ~/.bash_completion
mkdir -p $HOME/.local/bin/
# Symbolically link binaries
ln -sf $(pwd)/bin/sshtunnel $HOME/.local/bin/sshtunnel
ln -sf $(pwd)/bin/sshtunnel-completion.bash $HOME/.local/bin/sshtunnel-completion.bash
# Add completion to bash_completion for sshtunnel
sed -i '/sshtunnel/d' ~/.bash_completion
echo "source $HOME/.local/bin/sshtunnel-completion.bash" >> ~/.bash_completion
printfe "%s\n" "green" "Local installation complete. Binary has been installed to $HOME/.local/bin/sshtunnel"
source ~/.bash_completion