From f81c4f1b033a1b410d5ec18544c97068d57e1e04 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Tue, 11 Jul 2023 09:52:32 -0700 Subject: [PATCH] Some work on aliases and keybinds --- dotfiles/zsh/aliases.zsh | 5 +++++ dotfiles/zsh/keybinds.zsh | 7 +++++++ dotfiles/zsh/zshrc | 1 + 3 files changed, 13 insertions(+) create mode 100644 dotfiles/zsh/keybinds.zsh diff --git a/dotfiles/zsh/aliases.zsh b/dotfiles/zsh/aliases.zsh index e437bb4..d741bec 100644 --- a/dotfiles/zsh/aliases.zsh +++ b/dotfiles/zsh/aliases.zsh @@ -19,6 +19,11 @@ alias k8='kubectl' # Good overrides +alias ls='ls --color=auto' +alias grep='grep --colour=auto' +alias egrep='egrep --colour=auto' +alias fgrep='fgrep --colour=auto' + # Don't nuke the computer alias rm='rm -i' diff --git a/dotfiles/zsh/keybinds.zsh b/dotfiles/zsh/keybinds.zsh new file mode 100644 index 0000000..e8c77d6 --- /dev/null +++ b/dotfiles/zsh/keybinds.zsh @@ -0,0 +1,7 @@ +# In here you can define various keybinds for any +# given setup. Just wrap them with the appropriate checks. + +# Bind caps lock to escape if `setxkbmap` exists +if type "setxkbmap" > /dev/null; then + setxkbmap -option caps:escape +fi diff --git a/dotfiles/zsh/zshrc b/dotfiles/zsh/zshrc index 0ef5b1c..b0d4deb 100644 --- a/dotfiles/zsh/zshrc +++ b/dotfiles/zsh/zshrc @@ -88,6 +88,7 @@ source $symlink_dir/functions.zsh source $symlink_dir/exports.zsh source $symlink_dir/initializations.zsh source $symlink_dir/ps1.zsh +source $symlink_dir/keybinds.zsh # ZSH syntax highlighting must be sourced last source $HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh