summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc7
-rw-r--r--.config/kitty/kitty.conf1
-rw-r--r--.zshrc40
3 files changed, 41 insertions, 7 deletions
diff --git a/.bashrc b/.bashrc
index 81da34f..7fa050a 100644
--- a/.bashrc
+++ b/.bashrc
@@ -12,10 +12,3 @@ PS1='\[\033[1;1m\]\u\[\033[00m\]@\[\033[34m\]\h \[\033[32m\]\w \[\033[35m\]$(git
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
-
-# Automatically added by the Guix install script.
-if [ -n "$GUIX_ENVIRONMENT" ]; then
- if [[ $PS1 =~ (.*)"\\$" ]]; then
- PS1="${BASH_REMATCH[1]} [env]\\\$ "
- fi
-fi
diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf
new file mode 100644
index 0000000..7d27b3d
--- /dev/null
+++ b/.config/kitty/kitty.conf
@@ -0,0 +1 @@
+cursor_blink_interval 0.5
diff --git a/.zshrc b/.zshrc
new file mode 100644
index 0000000..ad1427c
--- /dev/null
+++ b/.zshrc
@@ -0,0 +1,40 @@
+#!/bin/zsh
+
+# Completion
+autoload -U compinit
+compinit
+
+# History
+export HISTSIZE=2000
+export HISTFILE="$HOME/.history"
+export SAVEHIST=$HISTSIZE
+setopt hist_ignore_space
+
+# Misc
+setopt autocd
+setopt extendedglob
+
+# Prompt
+alias ls='ls --color=auto'
+alias grep='grep --color=auto'
+PROMPT="[%B%F{33}%n%f%b%F{15}@%f%F{81}%m%f] %F{47}%~ %F{15}$ "
+
+# Vi mode
+bindkey -v
+
+# Change cursor shape for different vi modes.
+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.
+KEYTIMEOUT=1