Add "add_ssh" to add a new ssh host to the ~/.ssh/config file.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Aliases
|
||||
alias ga='git add'
|
||||
alias gall='git add .'
|
||||
alias g='git'
|
||||
alias get='git'
|
||||
alias gst='git status'
|
||||
|
||||
5
plugins/ssh.plugins.bash
Normal file
5
plugins/ssh.plugins.bash
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
function add_ssh() {
|
||||
echo -en "\n\nHost $1\n HostName $2\n User $3" >> ~/.ssh/config
|
||||
}
|
||||
Reference in New Issue
Block a user