summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc22
1 files changed, 18 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index e81a485..d91c59c 100644
--- a/.zshrc
+++ b/.zshrc
@@ -34,9 +34,8 @@ alias ip="ip --color=auto"
alias grep="grep --color=auto"
alias diff="diff --color=auto"
alias ccat="highlight --out-format=ansi"
-
-
-alias config="/usr/bin/git --git-dir=$HOME/.cfg --work-tree=$HOME"
+alias vim="nvim"
+alias show="kitten icat --align=left"
# Have manpages use colors
export LESS_TERMCAP_md=$'\e[1;36m'
@@ -56,7 +55,13 @@ export GROFF_NO_SGR=1
ZSH_AUTOSUGGEST_STRATEGY=(completion history)
}
-.reload
+ssh() {
+ if [ "$1" = "redcom" ]; then
+ /usr/bin/ssh $1
+ else
+ TERM=alacritty /usr/bin/ssh $1
+ fi
+}
# Enable zsh keybinds for home, end, and other movement keybinds
bindkey "\e[1;5D" backward-word
@@ -68,8 +73,17 @@ bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "\e\d" undo
+.ranger() {
+ ranger --choosedir=$HOME/.rangerdir < $TTY
+ LASTDIR=$(cat $HOME/.rangerdir)
+ cd "$LASTDIR"
+ zle reset-prompt
+}
+
zle -N reload .reload
bindkey "^R" reload
+zle -N ranger .ranger
+bindkey "^F" ranger
# GPG SETUP FOR SSH
export GPG_TTY=$(tty)