From 3764b268dbeaa95a8d4b2da8d4433eab75ad8478 Mon Sep 17 00:00:00 2001
From: Timmy Keller <tjk@tjkeller.xyz>
Date: Wed, 7 Jul 2021 15:21:45 -0500
Subject: dotfiles

---
 zsh/zshrc | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 zsh/zshrc

(limited to 'zsh/zshrc')

diff --git a/zsh/zshrc b/zsh/zshrc
new file mode 100644
index 0000000..7e5408e
--- /dev/null
+++ b/zsh/zshrc
@@ -0,0 +1,33 @@
+#!/bin/zsh
+
+# Colors! + Prompt
+autoload -U colors && colors
+PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
+
+# Load aliasrc and keybindrc
+source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/aliasrc"
+source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/keybindrc"
+# lf icons
+source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/lficons"
+
+# Change cursor shape for different vi modes (LARBS)
+function zle-keymap-select () {
+	case $KEYMAP in
+		vicmd) echo -ne '\e[1 q';;      # block
+		viins|main) echo -ne '\e[5 q';; # beam
+	esac
+}
+zle -N zle-keymap-select
+zle-line-init() {
+	zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
+	echo -ne "\e[5 q"
+}
+zle -N zle-line-init
+echo -ne '\e[5 q' # Use beam shape cursor on startup
+preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt
+
+# Load zsh plugins; should be last
+#source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
+source /usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh
+source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
+source /home/timmy/.config/broot/launcher/bash/br
-- 
cgit v1.2.3