-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from hlein/lftp
Add lftp
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
description: LFTP is a file transfer client (FTP and other protocols). | ||
functions: | ||
shell: | ||
- description: Stack commands that include launching a shell. | ||
code: | | ||
lftp -c '!bash' | ||
command: | ||
- description: Stack commands that include running a command. | ||
code: | | ||
lftp -c '!whoami' | ||
shell: | ||
- description: Stack commands that include launching a shell. | ||
code: | | ||
lftp -e '!bash' | ||
command: | ||
- description: Stack commands that include running a command. | ||
code: | | ||
lftp -e '!whoami' | ||
file-read: | ||
- description: Read an arbitrary file by specifying it as a script file. | ||
code: | | ||
lftp -f /etc/passwd | ||
file-write: | ||
- description: Overwrite a file, or create an empty file. | ||
code: | | ||
lftp -c 'mirror --script=lftp.script' | ||
--- |