Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/pdmenu
- ## Version: 2012-02-11
- ## Mods:
- ## By: Digital Foundations
- ## License: GPL
- ## Uses: mc
- ##
- ## Changelog: 29/1/12 - Fixed help, quick-connect
- ##
- # This menu is designed to give quick access to regular
- # repetative tasks performed in the Linux (Debian) console.
- #
- # Save this file in /usr/local/bin
- # and chmod ugo+x /usr/local/bin/pdmenu.*
- #Set a pleasing color scheme.
- color:desktop:blue:blue
- color:title:blue:white
- color:base:blue:white
- #this is a comment
- menu:ssh:SSH:Select
- preproc:if [ ! -f ~/.local/pdmenu.ssh.hosts ]; then \
- echo "exec:_demo::ssh -p 22 user@hostname" > ~/.local/pdmenu.ssh.hosts; fi; \
- cat ~/.local/pdmenu.ssh.hosts
- exec:_Quick-connect:edit:ssh ~Username?:~@~Hostname?:~ -p ~Port?:22~
- nop
- show:_Help::help
- exec:_Edit hosts::nano ~/.local/pdmenu.ssh.hosts
- exec:_Edit menu::sudo nano /usr/local/bin/pdmenu.ssh
- menu:help:Help
- exec:_About:disp:grep '^##' /usr/local/bin/pdmenu.ssh
- exec:_man ssh::man ssh
- exec:_Version:disp:ssh --version
- nop
- exit:_Back to main menu..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement