summaryrefslogtreecommitdiff
path: root/make-symlinks
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-17 17:59:06 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-17 17:59:06 +0300
commit29c791aeaa65078b3b3430e3e3d845c71cbd0fce (patch)
tree54109e7a0c7887f9ddbd0ae341e4ab28322d48e4 /make-symlinks
parent2f255129d51826149721925515ab41317b1154d4 (diff)
downloadliw-dot-files-29c791aeaa65078b3b3430e3e3d845c71cbd0fce.tar.gz
drop ssh/config-wmf symlink
Sponsored-by: author
Diffstat (limited to 'make-symlinks')
-rwxr-xr-xmake-symlinks27
1 files changed, 10 insertions, 17 deletions
diff --git a/make-symlinks b/make-symlinks
index a102b20..f2396f1 100755
--- a/make-symlinks
+++ b/make-symlinks
@@ -2,19 +2,15 @@
set -e
-die()
-{
- echo "$@" 1>&2
- exit 1
+die() {
+ echo "$@" 1>&2
+ exit 1
}
-
-abspath()
-{
- (cd "$1" && pwd)
+abspath() {
+ (cd "$1" && pwd)
}
-
dirname="$(abspath "$(dirname "$0")")"
echo "$dirname"
@@ -34,19 +30,16 @@ files="
vimrc
xsessionrc
ssh/config
- ssh/config-wmf
ssh/config-pers
config/flake8
"
install -d "$HOME/.config"
-for x in $files
-do
- [ -e "$dirname/$x" ] || die "$dirname/$x does not exist, oops"
-# [ ! -L "$HOME/.$x" ] || die "$HOME/.$x is already a symlink, oops"
+for x in $files; do
+ [ -e "$dirname/$x" ] || die "$dirname/$x does not exist, oops"
+ # [ ! -L "$HOME/.$x" ] || die "$HOME/.$x is already a symlink, oops"
done
-for x in $files
-do
- ln -sf "$dirname/$x" "$HOME/.$x"
+for x in $files; do
+ ln -sf "$dirname/$x" "$HOME/.$x"
done