From 5d3c8e21d2d79a6ed3e324b833002a9bb0317b34 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 29 Sep 2020 22:12:48 +0200 Subject: Linux config --- programs/zsh/precomp.zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'programs/zsh/precomp.zshrc') diff --git a/programs/zsh/precomp.zshrc b/programs/zsh/precomp.zshrc index 776d218..6398877 100644 --- a/programs/zsh/precomp.zshrc +++ b/programs/zsh/precomp.zshrc @@ -1,5 +1,9 @@ -. ~/.nix-profile/etc/profile.d/nix.sh +[ -f ~/.nix-profile/etc/profile.d/nix.sh ] && . ~/.nix-profile/etc/profile.d/nix.sh export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH + +autoload -U colors && colors +PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " + stty stop undef [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc" [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc" -- cgit 1.4.1