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