4 Commits 3dff68b58e ... e4163cd553

Author SHA1 Message Date
  Kyle P Davis e4163cd553 feat: fancier man pages 3 years ago
  Kyle P Davis 20a62a9bcd feat: simplify history by dropping dups first 3 years ago
  Kyle P Davis dfb5e5cdb5 fix: explicitly say pure@main so antigen loads it into zsh properly 3 years ago
  Kyle P Davis 2797dc65ac fix: log errors in node-print and ts-node-print 3 years ago
1 changed files with 10 additions and 10 deletions
  1. 10 10
      .profile

+ 10 - 10
.profile

@@ -54,18 +54,18 @@ export LESS="-FRX"
 ###############################################################################
 
 # tweak history behavior a bit
-HISTSIZE=50000
+HISTSIZE=60000
 if [ ! "$ZSH_VERSION" ]; then
-	HISTFILESIZE=500000
+	HISTFILESIZE=50000
 	HISTCONTROL="ignoreboth"
 	shopt -s histappend
 	PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
 else
-	SAVEHIST=500000
+	SAVEHIST=50000
+	setopt HIST_EXPIRE_DUPS_FIRST
 	# https://www.refining-linux.org/archives/49-ZSH-Gem-15-Shared-history.html
-	setopt inc_append_history
-	setopt share_history
-
+	setopt INC_APPEND_HISTORY
+	setopt SHARE_HISTORY
 fi
 
 # check window size after each command
@@ -87,8 +87,9 @@ alias l="ls -FC"
 alias d="l"
 alias tree="tree -CF"
 alias grep="grep --color --exclude-dir={.svn,.git,node_modules}"
-alias node-print="node -e 'let [,f=\".\",e=\"this\"]=process.argv,ctx; try{ctx=require(f)}catch{ctx=require(path.resolve(f))}; eval(\`(async function(){ with(this) return (\${e}); })\`).call(ctx).then(console.log)'"
-alias ts-node-print="TS_NODE_FILES=true node -r ts-node/register -e 'let [,f=\".\",e=\"this\"]=process.argv,ctx; try{ctx=require(f)}catch{ctx=require(path.resolve(f))} eval(\`(async function(){ with(this) return (\${e}); })\`).call(ctx).then(console.log)'"
+alias man='LESS_TERMCAP_md=$(tput bold; tput setaf 4) LESS_TERMCAP_me=$(tput sgr0) LESS_TERMCAP_mb=$(tput blink) LESS_TERMCAP_us=$(tput setaf 2) LESS_TERMCAP_ue=$(tput sgr0) LESS_TERMCAP_so=$(tput smso) LESS_TERMCAP_se=$(tput rmso) PAGER="${commands[less]:-$PAGER}" man'
+alias node-print="node -e 'let [,f=\".\",e=\"this\"]=process.argv,ctx; try{ctx=require(f)}catch{ctx=require(path.resolve(f))}; eval(\`(async function(){ with(this) return (\${e}); })\`).call(ctx).then(console.log,console.error)'"
+alias ts-node-print="TS_NODE_FILES=true node -r ts-node/register -e 'let [,f=\".\",e=\"this\"]=process.argv,ctx; try{ctx=require(f)}catch{ctx=require(path.resolve(f))} eval(\`(async function(){ with(this) return (\${e}); })\`).call(ctx).then(console.log,console.error)'"
 
 # color diffs
 ! command -v colordiff &>/dev/null  ||  alias diff="colordiff"
@@ -113,8 +114,7 @@ if [ "$ZSH_VERSION" ]; then
 	BUNDLES=(
 		zsh-users/zsh-syntax-highlighting
 		mafredri/zsh-async
-		sindresorhus/pure
-		ael-code/zsh-colored-man-pages
+		sindresorhus/pure@main
 	)
 	for B in ${=BUNDLES}; do
 		antigen bundle "$B"