diff --git a/src/applications/postman.sh b/src/applications/postman.sh new file mode 100644 index 0000000..b34de24 --- /dev/null +++ b/src/applications/postman.sh @@ -0,0 +1,36 @@ +# Get install file +wget https://dl.pstmn.io/download/latest/linux64 + +# Extract file +sudo tar -xvf linux64 -C /usr/bin +rm linux64 + +# export postman to env table +if [[ $(which zsh) == "/usr/bin/zsh" ]]; then + echo '# Postman path' >> ~/.zshrc + echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.zshrc + source ~/.zshrc +else + echo '# Postman path' >> ~/.bashrc + echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.bashrc + source ~/.bashrc +fi + +# Create file and set info +touch Postman.desktop +{ + echo '[Desktop Entry]' + echo 'Name=Postman API Tool' + echo 'GenericName=Postman' + echo 'Comment=Testing API' + echo 'Exec=/usr/bin/Postman/Postman' + echo 'Terminal=false' + echo 'X-MultipleArgs=false' + echo 'Type=Application' + echo 'Icon=/usr/bin/Postman/app/resources/app/assets/icon.png' + echo 'StartupWMClass=Postman' + echo 'StartupNotify=true' +} >> Postman.desktop + +# move file to applications +sudo mv Postman.desktop /usr/share/applications/Postman.Desktop \ No newline at end of file