summaryrefslogtreecommitdiffstats
path: root/minimal_linking_example.sh
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2025-06-04 01:03:45 +0900
committerMitsuo Tokumori <[email protected]>2025-06-04 01:03:45 +0900
commit55fa988f6f8316918f8a1a5a901b0561467c1b77 (patch)
treea2a0346acaf41a3911a7445116003c213152eef6 /minimal_linking_example.sh
parent0876b5a6254d78910d5530439fd8d2735d257c9a (diff)
downloaddotfiles-55fa988f6f8316918f8a1a5a901b0561467c1b77.tar.gz
dotfiles-55fa988f6f8316918f8a1a5a901b0561467c1b77.tar.bz2
dotfiles-55fa988f6f8316918f8a1a5a901b0561467c1b77.zip
Create extra/ and minimal/
minimal/ should be a minimal subset of public/ to be used when installing configuration files on a VPS or VM. Move .git-prompt.sh to extra to be sym-linked both in public/ and minimal/
Diffstat (limited to 'minimal_linking_example.sh')
-rw-r--r--minimal_linking_example.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/minimal_linking_example.sh b/minimal_linking_example.sh
new file mode 100644
index 0000000..e28b4ad
--- /dev/null
+++ b/minimal_linking_example.sh
@@ -0,0 +1,21 @@
+# I don't maintain this file, use it ONLY AS REFERENCE
+#
+# WARNINGS:
+# * if $HOME contains spaces this breaks
+# * `ln -sf` overwrites the destination files
+#
+# you can play with ln options (e.g., `ln -siv`)
+
+target=$HOME/dotfiles/minimal
+dest=$HOME
+
+cd $dest
+ln -sf $target/.inputrc
+ln -sf $target/.git-prompt.sh
+ln -sf $target/.bashrc
+ln -sf $target/.bash_aliases
+cd $dest/.config
+ln -sf $target/.config/git
+ln -sf $target/.config/locale.conf
+ln -sf $target/.config/nvim
+ln -sf $target/.config/tmux