coliru

A minimal, flexible, dotfile installer
git clone https://git.ashermorgan.net/coliru/
Log | Files | Refs | README

commit 8aca6e0d68e5bf9d88d76bcea9eb9be4a837849a
parent 0c88a229462e569b36847782d726c149fd7749a9
Author: Asher Morgan <59518073+ashermorgan@users.noreply.github.com>
Date:   Tue,  9 Jul 2024 15:02:18 -0700

Update basic example dotfile repo

Diffstat:
Mexamples/basic/manifest.yml | 19+++++++++----------
Mexamples/basic/script.bat | 2+-
Mexamples/basic/script.sh | 2+-
3 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/examples/basic/manifest.yml b/examples/basic/manifest.yml @@ -6,32 +6,31 @@ # ├── manifest.yml # └── vimrc -# For testing purposes, all files are given the .coliru suffix so they won't -# overwrite existing dotfiles. The .bashrc and .vimrc files are linked to their -# destinations so that changes are synced with the dotfile repo. In contrast, -# the .gitconfig file is copied so that the name & email fields can be modified -# without changing the version in the dotfile repo. +# The .bashrc and .vimrc files are linked to their destinations so that changes +# are synced with the dotfile repo. In contrast, the .gitconfig file is copied +# so that the name & email fields can be modified without changing the version +# in the dotfile repo. steps: - copy: - src: gitconfig - dst: ~/.gitconfig.coliru + dst: ~/.gitconfig tags: [ windows, linux, macos ] - link: - src: bashrc - dst: ~/.bashrc.coliru + dst: ~/.bashrc - src: vimrc - dst: ~/.vimrc.coliru # Will create symbolic links on Linux & MacOS + dst: ~/.vimrc # will create symbolic links on Linux & MacOS run: - src: script.sh - prefix: sh # unecessary on Unix if script.sh is executable + prefix: sh postfix: arg1 $COLIRU_RULES tags: [ linux, macos ] - link: - src: vimrc - dst: ~/_vimrc.coliru # Will create hard link on Windows + dst: ~/_vimrc # will create hard link on Windows run: - src: script.bat postfix: arg1 $COLIRU_RULES diff --git a/examples/basic/script.bat b/examples/basic/script.bat @@ -1,2 +1,2 @@ @ECHO OFF -ECHO script.bat called with %* +ECHO This is script.bat, called on %COMPUTERNAME% with args ^"%*^" diff --git a/examples/basic/script.sh b/examples/basic/script.sh @@ -1,3 +1,3 @@ #!/usr/bin/env sh -echo "script.sh called with $@" +echo This is script.sh, called on $(hostname) with args \"$@\"