commit c027d7693be13272b9cefaef7c3f4b1759046f46
parent 2e20e6f5383608fda30e8481b159e703e9d9285f
Author: klewer-martin <martin.cachari@gmail.com>
Date: Thu, 22 Apr 2021 21:05:31 -0300
Update: updated zsh config file.
Diffstat:
M | .zshrc | | | 45 | ++++++++++++++++++++++++++++++++------------- |
1 file changed, 32 insertions(+), 13 deletions(-)
diff --git a/.zshrc b/.zshrc
@@ -7,9 +7,9 @@
# by github.com/klewer-martin
#
-HISTFILE=$HOME/.cache/histfile
-HISTSIZE=10000
-SAVEHIST=10000
+HISTFILE=~/.cache/histfile
+HISTSIZE=1000000
+SAVEHIST=1000000
PROMPT_EOL_MARK=''
@@ -23,10 +23,17 @@ compinit
_comp_options+=(globdots)
+source ~/.config/zsh/plugged/zsh-autosuggestions/zsh-autosuggestions.zsh
+source ~/.config/zsh/plugged/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+
+ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff0000"
+# ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff0000,bg=cyan,bold,underline"
+
+# avoid vi keybindigs;
bindkey -e
# Add my personal scripts folder to path
-PATH="$PATH:$HOME/scripts:$HOME/.local/share/gem/ruby/2.7.0/bin"
+PATH="$PATH:$HOME/soydev/scripts:$HOME/soydev/scripts/statusbar:$HOME/.local/share/gem/ruby/2.7.0/bin:$HOME/.local/bin"
# Set nvim as default editor
export EDITOR=/usr/bin/nvim
@@ -35,21 +42,30 @@ export EDITOR=/usr/bin/nvim
set preview_images_method ueberzug
# aliases; probably gonna export them to a file in a future
+alias c='clear'
+alias cal='cal -3'
+alias cp='cp -iv'
+alias devbox='ssh -Y mk@192.168.0.172'
+alias df='df -h | grep -v snapd'
+alias diff='diff --color=auto'
+alias g='git'
+alias grep='grep --color=auto'
alias ls='ls --color=auto'
alias la='ls -la'
alias ll='ls -l'
alias l='ls'
-alias c='clear'
-alias grep='grep --color=auto'
-alias v='nvim'
-alias sv='sudo nvim'
-alias r='ranger'
-alias xclip='xclip -selection clipboard'
alias matrix='unimatrix -n -s 95 -l o -a'
-alias df='df -h | grep -v snapd'
-alias g='git'
alias py='python'
+alias r='ranger'
alias ss='sudo systemctl'
+alias sv='sudo nvim'
+alias svim='sudo nvim'
+alias termite='termite --title="termite"'
+alias v='nvim'
+alias vim_='vim'
+alias vim='nvim'
+alias xclip='xclip -selection clipboard'
+
# this part sets a nice colored bash like prompt;
autoload -U colors && colors
@@ -57,6 +73,8 @@ autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[magenta]%}%M %{$fg[blue]%}%1~%{$fg[red]%}]%{$reset_color%}$%b "
+
+
# starts the x server (because I don't use a disply manager)
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
startx
@@ -82,8 +100,9 @@ zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey '^[[P' delete-char # delete delete previous char
+bindkey '^[[3~' delete-char # delete delete previous char
bindkey '^[[H' beginning-of-line # home go to the beginning of line
-bindkey '^[[4~' end-of-line # end go to the end of line
+bindkey '^[[F' end-of-line # end go to the end of line
bindkey '^[[1;5C' forward-word # ctrl+right go forward one word
bindkey '^[[1;5D' backward-word # ctrl+left go backward one word
bindkey '^H' backward-kill-word # ctrl+bs delete previous word