Install postman
This commit is contained in:
parent
92943c0905
commit
aba0c5eed1
36
src/applications/postman.sh
Normal file
36
src/applications/postman.sh
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user