aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh45
1 files changed, 31 insertions, 14 deletions
diff --git a/setup.sh b/setup.sh
index e8ad667..f6f5c42 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+# Configurations. {{{1
+
+# Make symlinks to dot files. {{{2
for name in \
.tmux.conf \
.vimrc \
@@ -12,11 +15,13 @@ do
fi
done
+# Make ~/.config directory. {{{2
if [ ! -d ~/.config ]; then
echo "dir: ~/.config"
mkdir ~/.config
fi
+# Make symlinks to dot directories. {{{2
for name in \
alacritty \
bat \
@@ -32,6 +37,28 @@ do
fi
done
+# Scripts. {{{1
+
+# Make ~/bin directory. {{{2
+if [ ! -d ~/bin ]; then
+ echo "dir: ~/bin"
+ mkdir ~/bin
+fi
+
+# Make symlinks to utility scripts. {{{2
+for name in \
+ tmux-pane-idx \
+ ; \
+do
+ if [ ! -L ~/bin/"$name" ]; then
+ echo "symlink: ~/bin/$name"
+ ln -s -f ~/dotfiles/bin/"$name" ~/bin/"$name"
+ fi
+done
+
+# Application-specific configurations. {{{1
+
+# Alacritty {{{2
if [ ! -f ~/.config/alacritty/alacritty.local.yml ]; then
echo "symlink: ~/.config/alacritty/alacritty.local.yml"
if [[ "$(uname)" == "Darwin" ]]; then
@@ -41,17 +68,20 @@ if [ ! -f ~/.config/alacritty/alacritty.local.yml ]; then
fi
fi
+# Neovim: paq-nvim {{{2
paq_dir="${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim
if [ ! -d "$paq_dir" ]; then
echo "clone: $paq_dir"
git clone --depth=1 https://github.com/savq/paq-nvim.git "$paq_dir"
fi
+# SKK {{{2
if [ ! -d ~/.config/skk ]; then
echo "dir: ~/.config/skk"
mkdir ~/.config/skk
fi
+# SKK: download jisyo file. {{{2
if [ ! -f ~/.config/skk/jisyo.L ]; then
echo "download: ~/config/.skk/jisyo.L"
_compressed_jisyo="$(mktemp)"
@@ -59,17 +89,4 @@ if [ ! -f ~/.config/skk/jisyo.L ]; then
gunzip -cd "$_compressed_jisyo" > ~/.config/skk/jisyo.L
fi
-if [ ! -d ~/bin ]; then
- echo "dir: ~/bin"
- mkdir ~/bin
-fi
-
-for name in \
- tmux-pane-idx \
- ; \
-do
- if [ ! -L ~/bin/"$name" ]; then
- echo "symlink: ~/bin/$name"
- ln -s -f ~/dotfiles/bin/"$name" ~/bin/"$name"
- fi
-done
+# vim: foldmethod=marker