commit 637fa38af101f3dfe4dd35149479eb79d7dd1c7d
parent 73b7a655312294e5d830f796aaf37401bc09aea0
Author: klewer-martin <martin.cachari@gmail.com>
Date: Thu, 4 Feb 2021 16:48:12 -0300
Updated zshrc now with more aliases, still have to fix Home, End,
PgUp, PgDn funtionality, still don't work properly;
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.zshrc b/.zshrc
@@ -11,6 +11,9 @@ HISTFILE=~/.cache/histfile
HISTSIZE=10000
SAVEHIST=10000
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
zstyle :compinstall filename '/home/mk/.zshrc'
autoload -Uz compinit
@@ -38,6 +41,8 @@ alias vim='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'
# this part sets a nice colored bash like prompt;
autoload -U colors && colors
@@ -45,8 +50,7 @@ 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