about summary refs log tree commit diff
path: root/programs/zsh/precomp.zshrc
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-29 22:12:48 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-29 22:12:48 +0200
commit5d3c8e21d2d79a6ed3e324b833002a9bb0317b34 (patch)
tree08e26e0a885d575c8399fb65bbef3ddc2ad233db /programs/zsh/precomp.zshrc
parenta24f50c8a264fd0e42c789f4cf16a8796ab97e47 (diff)
downloaddots-5d3c8e21d2d79a6ed3e324b833002a9bb0317b34.tar.gz
dots-5d3c8e21d2d79a6ed3e324b833002a9bb0317b34.zip
Linux config
Diffstat (limited to 'programs/zsh/precomp.zshrc')
-rw-r--r--programs/zsh/precomp.zshrc6
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"