Hi @janw.oostendorp, I’m pretty sure your command is fine but the command exits so fast you cannot see it. Run a command that sticks around, like top to see what I mean.
But mate-terminal has a profile setting and I recall, in the past, I made a separate profile just to include this because it’s not always desired. Edit -> Profile Preferences does change your default profile, something to keep in mind.
Under Title and Command is When command exits and can be set to Hold the terminal open.
There are other solutions but this should do the trick.
Another way is without the terminal (zenity required)
The script would look like this
[code]#!/bin/sh
cd ~/site/example.com
git_status(){ #Commands go here
echo “–> git status -u”
echo “”
git status -u
echo “–> Done”
}
git_status 2>&1
| zenity --text-info --title=“Git status” --width=500 --height=500[/code]
Make it executable and when you call the script use the next line (change the path and the script name).
Да Ивчо, I think something like this in /home/user/.config/caja/scripts would do
[code]#!/bin/sh
git_status(){ #Commands go here
echo “–> git status -u”
echo “”
git status -u
echo “–> Done”
echo “”
}
for arg
do
if [ -d “$arg” ]; then
echo “Folder: ${arg}”
git_status 2>&1
else
echo “You must select a folder”
fi
done | zenity --text-info --title=“Git status” --width=500 --height=500[/code]
Caja actions is a tool that adds custom commands to the right click menu . Like the ones extract here and etc. It uses scripts or external commands for the actions . With this you can even replacate the right click menus of windows “Move to , copy to” actions . Simular thing to putting the script of @anon94368460 in scrypts folder but caja actions is more powerfull .