Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 804 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 804 Bytes

scpwd

secure copy pwd - quickly echo scp path including username@hostname and optional filename for productivity.

Screen Demo

Samples

/etc/ $ scpwd
[email protected]:/etc
/etc/ $ scpwd /opt/
[email protected]:/opt
/etc/ $ scpwd my.conf
[email protected]:/etc/my.conf
/etc/ $ scpwd /usr/local/etc/my.conf
[email protected]:/usr/local/etc/my.conf
/etc/ $ scpwd ../usr/local/etc/my.conf
[email protected]:/usr/local/etc/my.conf

Optional user config file

The external username and hostname may differ from local settings. Place a file named .scpwd in a user's home directory to override the locally determined user@hostname with

Florian Sager, [email protected], 2021-02-25, MIT license