diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2025-06-23 19:48:49 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | d81461ebe95e1ed204b3abaef2b4fb43ac2a27e7 (patch) | |
| tree | b83653dba5d1471319455d7c2be76c902ccb488a | |
| parent | f7cd127ad1407e290a353a5e69c4a8713e94b70f (diff) | |
feat(zsh): create template for zprofile
| -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 }} |
