tmux: use configured fqdn instead of hostname -f
All checks were successful
flake / flake (push) Successful in 2m20s
All checks were successful
flake / flake (push) Successful in 2m20s
This commit is contained in:
parent
e75d676e73
commit
1efa9b26eb
@ -9,7 +9,7 @@ bind -n C-k clear-history
|
||||
|
||||
# Status pane
|
||||
set -g status-right-length 100
|
||||
set -g status-right "#(uname -r) • #(hostname -f | sed 's/\.ts\.hillion\.co\.uk//g') • %d-%b-%y %H:%M"
|
||||
set -g status-right "#(uname -r) • #(echo @FQDN | sed 's/\.ts\.hillion\.co\.uk//g') • %d-%b-%y %H:%M"
|
||||
|
||||
# New panes in the same directory
|
||||
bind '"' split-window -c "#{pane_current_path}"
|
||||
|
@ -11,7 +11,7 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.jake.programs.tmux = {
|
||||
enable = true;
|
||||
extraConfig = lib.readFile ./.tmux.conf;
|
||||
extraConfig = builtins.replaceStrings [ "@FQDN" ] [ config.networking.fqdn ] (builtins.readFile ./.tmux.conf);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user