Add "add_ssh" to add a new ssh host to the ~/.ssh/config file.
authorRobert R Evans <robert@codewranglers.org>
Sun, 10 Oct 2010 16:45:32 +0000 (09:45 -0700)
committerRobert R Evans <robert@codewranglers.org>
Sun, 10 Oct 2010 16:45:32 +0000 (09:45 -0700)
aliases/git.aliases.bash
plugins/ssh.plugins.bash [new file with mode: 0644]

index 148d490..6c23df8 100644 (file)
@@ -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'
diff --git a/plugins/ssh.plugins.bash b/plugins/ssh.plugins.bash
new file mode 100644 (file)
index 0000000..504e223
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+function add_ssh() {
+  echo -en "\n\nHost $1\n  HostName $2\n  User $3" >> ~/.ssh/config
+}
\ No newline at end of file