Debian Codegraph @

test/rcrc-hostname.t

raw
1 $ . "$TESTDIR/helper.sh"
2
3 The hostname can be set in ~/.rcrc
4
5 $ touch .dotfiles/example
6 > mkdir .dotfiles/host-$(hostname)
7 > touch .dotfiles/host-$(hostname)/h-example
8 > mkdir .dotfiles/host-eggplant_firetruck
9 > touch .dotfiles/host-eggplant_firetruck/nh-example
10 > mkdir .dotfiles/host-haircut_hammer
11 > touch .dotfiles/host-haircut_hammer/nh-example
12
13 $ echo 'HOSTNAME="eggplant_firetruck"' > $HOME/.rcrc
14
15 $ lsrc
16 /*/.nh-example:/*/.dotfiles/host-eggplant_firetruck/nh-example (glob)
17 /*/.example:/*/.dotfiles/example (glob)
18
19 $ lsrc -B haircut_hammer
20 /*/.nh-example:/*/.dotfiles/host-haircut_hammer/nh-example (glob)
21 /*/.example:/*/.dotfiles/example (glob)