12 lines
265 B
Fish
12 lines
265 B
Fish
|
function ssh-export
|
||
|
# Save the entry directory
|
||
|
set entry_directory $PWD
|
||
|
|
||
|
# Create the archive
|
||
|
cd $HOME/.ssh
|
||
|
tar cz --exclude='known_hosts*' -X environment -f '$HOME/SSH.tar.gz' *
|
||
|
|
||
|
# Returns to the entry directory
|
||
|
cd $entry_directory
|
||
|
end
|