summaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc33
1 files changed, 33 insertions, 0 deletions
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