From 07064c697f273525e505ec498b7c9a5859310311 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 25 Jul 2020 10:14:30 +0200 Subject: Moving to $HOME/git/dotfiles --- .zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 59b7a4e..85fa78e 100644 --- a/.zshrc +++ b/.zshrc @@ -2,10 +2,11 @@ # zshrc # ############### -export DOTFILES=$HOME/dotfiles + +[ -z $DOTDIR ] && export DOTDIR=$HOME/git/dotfiles # FIXME have to change path manually if install elsewhere # load aliases -source $DOTFILES/.zsh_aliases +source $DOTDIR/.zsh_aliases # prompt case `tty` in @@ -101,4 +102,4 @@ tabs 4 export LFS=/mnt -export PATH='/usr/local/sbin:/usr/local/bin:/usr/bin' +export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/bin" -- cgit From 35f4b5e7d2e190a899e9ab3c58619d03460db53b Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 26 Jul 2020 21:54:02 +0200 Subject: Added mail config with mutt --- .zshrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 85fa78e..284db68 100644 --- a/.zshrc +++ b/.zshrc @@ -83,10 +83,9 @@ export XDG_DATA_HOME="/home/charles/.data/" export EDITOR="vim" export TERM="st-256color" -# export TERM="xterm-256color" - -# mail -export MAIL='charles.cabergs@gmail.com' +export MAIL='me@cacharle.xyz' +export BROWSER='chromium' +export BROWSERCLI='w3m' # ignore filetypes in autocomplete fignore=(o hi) -- cgit From 57d0df7d52bda1ab183a71486659b8dfec40440c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 28 Jul 2020 12:41:05 +0200 Subject: Added shortcut to open terminal in project repository --- .zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 284db68..edadd25 100644 --- a/.zshrc +++ b/.zshrc @@ -52,11 +52,12 @@ setopt auto_cd # cd without `cd` command setopt list_rows_first # cycle through row first in menu # setopt extendedglob -# executed when changind directory +# executed when changing directory function chpwd() { - content=`ls | wc -l` - ([ $content -lt 30 ] && tree -L 1) || + content=$(ls | wc -l) + ([ "$content" -lt 20 ] && ls -l) || echo "$(pwd) contains $content entries" + touch . # to sort by last cd } # add command-not-found package suggestion -- cgit From 9976cc7a232927cc4ad7c83e546fbe53820bf859 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 30 Jul 2020 11:08:18 +0200 Subject: Added newsboat and dunst --- .zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index edadd25..d21278f 100644 --- a/.zshrc +++ b/.zshrc @@ -57,7 +57,7 @@ function chpwd() { content=$(ls | wc -l) ([ "$content" -lt 20 ] && ls -l) || echo "$(pwd) contains $content entries" - touch . # to sort by last cd + [ "$(stat -c "%U" .)" = "$USER" ] && touch . # to sort by last cd } # add command-not-found package suggestion @@ -103,3 +103,4 @@ tabs 4 export LFS=/mnt export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/bin" +export PATH="$PATH:$HOME/.vim/plugged/vim-superman/bin" -- cgit