commit fbb1029fd4aa0a8b74376ca7e12534cc741d07eb
parent 79b8324d45aa0e77bff9e754605f148dde9dbec6
Author: klewer-martin <martin.cachari@gmail.com>
Date: Mon, 3 May 2021 10:24:18 -0300
Update: zsh config file
Diffstat:
M | .zshrc | | | 39 | +++++++++++++++------------------------ |
1 file changed, 15 insertions(+), 24 deletions(-)
diff --git a/.zshrc b/.zshrc
@@ -23,6 +23,7 @@ compinit
_comp_options+=(globdots)
+# Add plugins (because I don't use a plugin manager)
source ~/.config/zsh/plugged/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.config/zsh/plugged/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
@@ -35,10 +36,11 @@ bindkey -e
# Add my personal scripts folder to path
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
+# Set EDITOR and TERM values
export EDITOR=/usr/bin/nvim
+export TERM='xterm-256color'
-# Set neovim as default editor
+# This is for ranger to display previews properly
set preview_images_method ueberzug
# aliases; probably gonna export them to a file in a future
@@ -49,12 +51,17 @@ 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 gst='git status'
+alias gc='git commit'
+alias gcm='git commit -m'
+alias gps='git push'
+alias gpl='git pull'
alias grep='grep --color=auto'
+alias l='ls --color=auto'
+alias la='ls --color=auto -lah'
+alias ll='ls --color=auto -lh'
alias ls='ls --color=auto'
-alias la='ls -la'
-alias ll='ls -l'
-alias l='ls'
-alias matrix='unimatrix -n -s 95 -l o -a'
+alias matrix='unimatrix -n -s 96 -l o -a'
alias py='python'
alias r='ranger'
alias ss='sudo systemctl'
@@ -69,31 +76,15 @@ alias xclip='xclip -selection clipboard'
# 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 "
-
-
-
# starts the x server (because I don't use a disply manager)
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
- startx
+ startx
logout
fi
-# Use lf to switch directories and bind it to ctrl-o
-lfcd () {
- tmp="$(mktemp)"
- lf -last-dir-path="$tmp" "$@"
- if [ -f "$tmp" ]; then
- dir="$(cat "$tmp")"
- rm -f "$tmp" >/dev/null
- [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
- fi
-}
-bindkey -s '^o' 'lfcd\n'
-
-# this fix my keybord in terminal; (I use st)
+# 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