551 Shaares
5 Ergebnisse
markiert
Skript
#!/bin/bash
#
# This script opens a gnome-terminal in all selected directories, if nothing is selected it opens in current directory.
#
# You need to have caja-actions installed to use scripts.
# Put this file in your ~/.config/caja/scripts/ directory. Then:
# chmod +x ~/.config/caja/scripts/open-terminal-here
# vim ~/.config/caja/accels
# add the following line
# (gtk_accel_path "<Actions>/ScriptsGroup/script_file:\\s\\s\\shome\\sUSER\\s.config\\scaja\\sscripts\\sopen-terminal-here" "F4")
# where USER is your user name. This binds the script to F4, but of course you can change the shortcut as you like.
# Quit Caja (caja -q) and restart it.
# I've tested it on Ubuntu 19.10.
#
# Extended from following sources:
# https://github.com/mate-desktop/caja-extensions/issues/31#issuecomment-385655453
# http://misawascriptkid.blogspot.com/2012/06/caja.html
# https://forums.linuxmint.com/viewtopic.php?p=773382&sid=9939ce160bd97313f849367231eb721a#p773382
# http://g-scripts.sourceforge.net/nautilus-scripts/Execute/Open%20terminal/terminal-here
if [[ -z "$CAJA_SCRIPT_SELECTED_FILE_PATHS" ]]; then
uri="${CAJA_SCRIPT_CURRENT_URI:7}"
exec gnome-terminal --working-directory="${uri//%20/ }"
exit
fi
while read path; do
if [[ -d "$path" ]]; then
gnome-terminal --working-directory="$path" &disown
fi
done <<< "$CAJA_SCRIPT_SELECTED_FILE_PATHS"#!/bin/bash
ftphost='entenhaus.en'
ftpuser='dagobert'
ftppassword='panzerknacker'
curlftpfs -r $ftpuser:$ftppassword@$ftphost /mnt/ftp
rsync -a -P -u --stats /mnt/ftp /home/dagobert/ftp
fusermount -u /mnt/ftpA small script to publish links stored in my personal Shaarli (https://github.com/shaarli/Shaarli) instance as markdown to my Blosxom (http://blosxom.sourceforge.net/) based personal blog.
