dotfiles

Config files from my daily system
Index Commits Files Refs README
commit 0415862c857509702dfe12a009a86b30a746b156
parent 1758ebfe5ce9536c23b91ceabf722f0a1db33d4d
Author: klewer-martin <mk@inspiron.localdomain>
Date:   Fri, 29 Jan 2021 15:39:01 -0300

Added zsh config file;

Diffstat:
A.zshrc | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+), 0 deletions(-)
diff --git a/.zshrc b/.zshrc
@@ -0,0 +1,59 @@
+#                 _              
+#         _______| |__  _ __ ___ 
+#        |_  / __| '_ \| '__/ __|
+#         / /\__ \ | | | | | (__ 
+#        /___|___/_| |_|_|  \___|
+#                                
+#         by @klewer-martin
+
+HISTFILE=~/.cache/histfile
+HISTSIZE=10000
+SAVEHIST=10000
+
+zstyle :compinstall filename '/home/mk/.zshrc'
+
+autoload -Uz compinit
+compinit
+
+# Add my personal scripts folder to path
+PATH="$PATH:/home/mk/scripts"
+
+
+# aliases; probably gonna export them to a file in a future
+alias ls='ls --color=auto'
+alias la='ls -la'
+alias ll='ls -l'
+alias cl='clear'
+alias v='nvim'
+alias sv='sudo nvim'
+
+# this part sets a nice colored bash like prompt;
+autoload -U colors && colors
+
+PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[magenta]%}%M %{$fg[blue]%}%1~%{$fg[red]%}]%{$reset_color%}$%b "
+
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+# starts the x server (because I don't use a disply manager)
+if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
+ startx
+logout
+fi
+
+
+# this fix my keybord in terminal; (I use st)
+autoload -Uz up-line-or-beginning-search
+autoload -Uz down-line-or-beginning-search
+zle -N up-line-or-beginning-search
+zle -N down-line-or-beginning-search
+
+bindkey '^[[P'    delete-char                    # delete      delete previous char
+bindkey '^[[H'    beginning-of-line             # home       go to the beginning 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
+bindkey '^[[3;5~' kill-word                     # ctrl+del   delete next word
+