added simple scripts and updated

This commit is contained in:
Solomon Laing 2023-02-11 16:15:12 +10:30
parent 5417494fc3
commit 03104eb1bf
6 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
export GOPATH="$HOME/go" export GOPATH="$HOME/go"
export PATH=$HOME/.local/bin:$GOPATH/bin:$PATH:$HOME/scripts export PATH=$PATH:$HOME/.local/bin:$GOPATH/bin:$HOME/scripts
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="/home/solomon/.oh-my-zsh" export ZSH="/home/solomon/.oh-my-zsh"

3
.local/bin/chmox Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
chmod +x "$@"

7
.local/bin/runif Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
if [[ -x "$1" ]]; then
$1
else
echo "$1 does not exist or couldn't be executed."
fi

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
/opt/ganttproject/ganttproject runif /opt/ganttproject/ganttproject

View File

@ -1,5 +1,3 @@
#!/bin/bash #!/bin/bash
if [ -f /usr/bin/Plexamp.AppImage ]; then runif /usr/bin/Plexamp.AppImage
/usr/bin/Plexamp.AppImage
fi

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
/opt/zotero/zotero runif /opt/zotero/zotero