summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2017-08-29 00:16:27 -0500
committerBlaise Thompson <blaise@untzag.com>2017-08-29 00:16:27 -0500
commit5f7b17fd7db8f9ee23d0a2e7c24090869bcf6c12 (patch)
treef06649a209e127a3805c11817bdf3f421ef19910
parent3468caf4758d2512c3147d036ae1f3d936e56e72 (diff)
add ssh+config
-rw-r--r--dotfiles/ssh+config9
-rwxr-xr-xlink.sh6
2 files changed, 13 insertions, 2 deletions
diff --git a/dotfiles/ssh+config b/dotfiles/ssh+config
new file mode 100644
index 0000000..bc59297
--- /dev/null
+++ b/dotfiles/ssh+config
@@ -0,0 +1,9 @@
+host wright_fs
+ User John
+ HostName 128.104.68.238
+ Port 22
+
+host wright_ps
+ User John
+ HostName 128.104.69.51
+ Port 22
diff --git a/link.sh b/link.sh
index 86b22e4..6d516e3 100755
--- a/link.sh
+++ b/link.sh
@@ -10,7 +10,9 @@ cd $dir
# move current files and link contained files
files=$(ls $dir)
-for name in $files; do
+for f in $files; do
+ name=${f//+//}
+ echo $name
mv ~/.$name ~/dotfiles_old/
- ln -s $dir/$name ~/.$name
+ ln -s $dir/$f ~/.$name
done