summaryrefslogtreecommitdiff
path: root/dot_zprofile.tmpl
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2025-06-23 19:48:49 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commitd81461ebe95e1ed204b3abaef2b4fb43ac2a27e7 (patch)
treeb83653dba5d1471319455d7c2be76c902ccb488a /dot_zprofile.tmpl
parentf7cd127ad1407e290a353a5e69c4a8713e94b70f (diff)
feat(zsh): create template for zprofile
Diffstat (limited to 'dot_zprofile.tmpl')
-rw-r--r--dot_zprofile.tmpl17
1 files changed, 17 insertions, 0 deletions
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 }}