From d6d10825ae1a82b75597db208c472b487715c29d Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Fri, 28 Nov 2014 11:28:23 -0500 Subject: [PATCH] Remove common .home suffix from local-config hostname. --- plugins/local-config/local-config.load | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/local-config/local-config.load b/plugins/local-config/local-config.load index 291636a..c108bb1 100644 --- a/plugins/local-config/local-config.load +++ b/plugins/local-config/local-config.load @@ -1,5 +1,5 @@ # Load custom settings for current hostname -set -l HOST (hostname | sed 's/\(-[0-9]\{1,\}\)\{0,1\}\(\.local\)\{0,1\}$//') +set -l HOST (hostname | sed -E 's/(-[0-9]+)?(\.(local|home))?$//') set -l HOST_SPECIFIC_FILE $fish_custom/hosts/$HOST.fish if test -f $HOST_SPECIFIC_FILE . $HOST_SPECIFIC_FILE