diff options
| -rw-r--r-- | dot_zprofile | 8 | ||||
| -rw-r--r-- | dot_zprofile.tmpl | 17 |
2 files changed, 17 insertions, 8 deletions
diff --git a/dot_zprofile b/dot_zprofile deleted file mode 100644 index 8ce7130..0000000 --- a/dot_zprofile +++ /dev/null @@ -1,8 +0,0 @@ -# Neovim as editor -export EDITOR="nvim ." - -# "bat" as manpager -export MANPAGER="sh -c 'col -bx | bat -l man -p'" - -# Setting bat theme -export BAT_THEME="gruvbox-dark" diff --git a/dot_zprofile.tmpl b/dot_zprofile.tmpl new file mode 100644 index 0000000..a51255b --- /dev/null +++ b/dot_zprofile.tmpl @@ -0,0 +1,17 @@ +# vim:ft=zsh + +# Neovim as editor +export EDITOR="nvim ." + +# "bat" as manpager +export MANPAGER="sh -c 'col -bx | bat -l man -p'" + +# Setting bat theme +export BAT_THEME="gruvbox-dark" + +{{ if eq .chezmoi.os "linux" }} +# Execute sway window manager on login +if [ -z "$WAYLAND_DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] ; then + exec sway +fi +{{ end }} |
