refactor: replace deprecated initExtra with initContent
This commit is contained in:
parent
e125a6197b
commit
efd67c580b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue