mirror of
				https://git.davidovski.xyz/dot.git
				synced 2024-08-15 00:43:28 +00:00 
			
		
		
		
	Use mksh history
This commit is contained in:
		
							parent
							
								
									90a7d7ceb3
								
							
						
					
					
						commit
						4c2194a7c5
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								mkshrc
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								mkshrc
									
										
									
									
									
								
							|  | @ -7,6 +7,9 @@ esac | ||||||
| export VIMINIT="source ~/.config/vim/vimrc" | export VIMINIT="source ~/.config/vim/vimrc" | ||||||
| export NVIMINIT="source ~/.config/vim/vimrc" | export NVIMINIT="source ~/.config/vim/vimrc" | ||||||
| 
 | 
 | ||||||
|  | HISTFILE="$HOME/.mksh_history" | ||||||
|  | HISTSIZE=5000 | ||||||
|  | 
 | ||||||
| if [ -x /usr/bin/dircolors ]; then | if [ -x /usr/bin/dircolors ]; then | ||||||
|     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" |     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | ||||||
|     alias ls='ls --color=auto' |     alias ls='ls --color=auto' | ||||||
|  |  | ||||||
|  | @ -7,6 +7,8 @@ SEARCH_HISTORY=$HOME/.local/share/search_history | ||||||
| 
 | 
 | ||||||
| SEARCH=$(cat $SEARCH_HISTORY | dmenu -p "search") | SEARCH=$(cat $SEARCH_HISTORY | dmenu -p "search") | ||||||
| 
 | 
 | ||||||
|  | [ -z "$SEARCH" ] && exit 1 | ||||||
|  | 
 | ||||||
| echo "$SEARCH" >> $SEARCH_HISTORY | echo "$SEARCH" >> $SEARCH_HISTORY | ||||||
| 
 | 
 | ||||||
| query=$(echo $SEARCH | sed 's/ /+/g') | query=$(echo $SEARCH | sed 's/ /+/g') | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue