Add "add_ssh" to add a new ssh host to the ~/.ssh/config file.
parent
017fc1d402
commit
22d9179ff7
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
function add_ssh() {
|
||||
echo -en "\n\nHost $1\n HostName $2\n User $3" >> ~/.ssh/config
|
||||
}
|
||||
Loading…
Reference in New Issue