1 #!/bin/bash
2
3 BITWARDEN_PATH=$(find ~/Downloads | grep 'Bitwarden.*.AppImage')
4
5 echo -n "Link $BITWARDEN_PATH to /usr/bin/ [y/n]: "
6 read resp
7
8 if [ "$resp" == "y" ]; then
9 echo "Linking $BITWARDEN_PATH to /usr/bin/Bitwarden"
10 sudo ln -f -s $BITWARDEN_PATH /usr/bin/Bitwarden
11 exa -lah /usr/bin/Bitwarden
12 else
13 echo "Not linking"
14 fi