refactor: replace deprecated initExtra with initContent

This commit is contained in:
Michael Mandl 2025-04-28 08:09:25 +02:00
parent e125a6197b
commit efd67c580b
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ ... }: { ... }:
{ {
programs.zsh.initExtra = '' programs.zsh.initContent = ''
if [ -f $HOME/.nix-profile/etc/profile.d/nix.sh ]; if [ -f $HOME/.nix-profile/etc/profile.d/nix.sh ];
then then
source $HOME/.nix-profile/etc/profile.d/nix.sh source $HOME/.nix-profile/etc/profile.d/nix.sh

View file

@ -13,7 +13,7 @@ in
highlight = zsh_autosuggest_highlight_style; highlight = zsh_autosuggest_highlight_style;
}; };
initExtra = '' initContent = ''
function set_win_title(){ function set_win_title(){
local TITLE=$(git config --get remote.origin.url || echo "$PWD") local TITLE=$(git config --get remote.origin.url || echo "$PWD")
echo -ne "\033]0; $(basename "$TITLE") \007" echo -ne "\033]0; $(basename "$TITLE") \007"