Quellcode durchsuchen

Use short hostname for file naming

Alois Mahdal vor 10 Jahren
Ursprung
Commit
369466f757

+ 1
- 1
dotfiles.config/Xlib/bin/setup Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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