diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-29 22:12:48 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-29 22:12:48 +0200 |
commit | 5d3c8e21d2d79a6ed3e324b833002a9bb0317b34 (patch) | |
tree | 08e26e0a885d575c8399fb65bbef3ddc2ad233db /programs/zsh/precomp.zshrc | |
parent | a24f50c8a264fd0e42c789f4cf16a8796ab97e47 (diff) | |
download | dots-5d3c8e21d2d79a6ed3e324b833002a9bb0317b34.tar.gz dots-5d3c8e21d2d79a6ed3e324b833002a9bb0317b34.zip |
Linux config
Diffstat (limited to 'programs/zsh/precomp.zshrc')
-rw-r--r-- | programs/zsh/precomp.zshrc | 6 |
1 files changed, 5 insertions, 1 deletions
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" |