Commit edce9781e6125a3961a5ca456e5a32a9b2fdc509
1 parent
b204d4da0e
Exists in
master
ssh config
Showing 2 changed files with 18 additions and 3 deletions Side-by-side Diff
link.sh
View file @
edce978
... | ... | @@ -114,15 +114,28 @@ |
114 | 114 | done |
115 | 115 | } |
116 | 116 | |
117 | +function ssh { | |
118 | + echo "Linking ssh" | |
119 | + SSH_CONFIG=~/Dropbox/config/ssh | |
120 | + if [ -e "$SSH_CONFIG" ]; | |
121 | + then | |
122 | + link $SSH_CONFIG ~/.ssh/config | |
123 | + else | |
124 | + echo "$SSH_CONFIG does not exist!" | |
125 | + fi | |
126 | +} | |
127 | + | |
128 | + | |
117 | 129 | function run { |
118 | - if [ $1 == "git" ]; | |
130 | + p="${1%/}" | |
131 | + if [ $p == "git" ]; | |
119 | 132 | then |
120 | 133 | c="git_config" |
121 | - elif [ $1 == "sublime-text-3" ]; | |
134 | + elif [ $p == "sublime-text-3" ]; | |
122 | 135 | then |
123 | 136 | c="sublime" |
124 | 137 | else |
125 | - c=$1 | |
138 | + c=$p | |
126 | 139 | fi |
127 | 140 | eval ${c} |
128 | 141 | } |
ssh/.gitignore
View file @
edce978