Bläddra i källkod

Use short hostname for file naming

Alois Mahdal 10 år sedan
förälder
incheckning
369466f757

+ 1
- 1
dotfiles.config/Xlib/bin/setup Visa fil

@@ -1,6 +1,6 @@
1 1
 #!/bin/bash
2 2
 
3
-host=`hostname`
3
+host=`hostname -s`
4 4
 
5 5
 cat<<EOF > $HOME/.Xdefaults
6 6
 !! This file is generated by .config/Xlib/bin/setup

+ 2
- 2
dotfiles/bash/setup/bashrc.diff Visa fil

@@ -13,8 +13,8 @@
13 13
 +    source "${HOME}/.bash/user/$(whoami).bashrc";
14 14
 +fi
15 15
 +
16
-+if [ -x "${HOME}/.bash/host/$(hostname).bashrc" ]; then
17
-+    source "${HOME}/.bash/host/$(hostname).bashrc";
16
++if [ -x "${HOME}/.bash/host/$(hostname -s).bashrc" ]; then
17
++    source "${HOME}/.bash/host/$(hostname -s).bashrc";
18 18
 +fi
19 19
 +
20 20
 +if [ -x "${HOME}/.bash/global-after.bashrc" ]; then

+ 1
- 1
dotfiles/git-universe/bin/setup Visa fil

@@ -13,7 +13,7 @@ else
13 13
     tilde=$HOME
14 14
 fi
15 15
 
16
-host=`hostname`
16
+host=`hostname -s`
17 17
 user=`whoami`
18 18
 
19 19
 printf "[include]\n" >> ~/.gitconfig