summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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