mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
Remove common .home suffix from local-config hostname.
This commit is contained in:
parent
5f230e331d
commit
d6d10825ae
@ -1,5 +1,5 @@
|
|||||||
# Load custom settings for current hostname
|
# 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
|
set -l HOST_SPECIFIC_FILE $fish_custom/hosts/$HOST.fish
|
||||||
if test -f $HOST_SPECIFIC_FILE
|
if test -f $HOST_SPECIFIC_FILE
|
||||||
. $HOST_SPECIFIC_FILE
|
. $HOST_SPECIFIC_FILE
|
||||||
|
Loading…
Reference in New Issue
Block a user