mirror of
				https://github.com/Stunkymonkey/dotfiles.git
				synced 2025-10-31 02:12:10 +01:00 
			
		
		
		
	 16aad7f4c5
			
		
	
	
		16aad7f4c5
		
	
	
	
	
		
			
			Convert all shebangs to /usr/bin/env bash, if bash is really required in the script. Otherwise convert it to /bin/sh. /bin/bash is not available on all systems, while /usr/bin/env bash and /bin/sh are.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			611 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			611 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| shopt -s autocd
 | |
| shopt -s checkwinsize
 | |
| export HISTFILESIZE=5000
 | |
| export HISTCONTROL=ignoreboth
 | |
| 
 | |
| #show colored man-pages
 | |
| export LESS_TERMCAP_mb=$'\E[01;31m'
 | |
| export LESS_TERMCAP_md=$'\E[01;36m'
 | |
| export LESS_TERMCAP_me=$'\E[0m'
 | |
| export LESS_TERMCAP_se=$'\E[0m'
 | |
| export LESS_TERMCAP_so=$'\E[01;44;33m'
 | |
| export LESS_TERMCAP_ue=$'\E[0m'
 | |
| export LESS_TERMCAP_us=$'\E[01;32m'
 | |
| 
 | |
| alias reload=". ~/.bashrc"
 | |
| 
 | |
| # Bind PageUp and PageDown to history search
 | |
| if [ -n "$BASH_VERSION" -a -n "$PS1" ]; then
 | |
| 	bind '"\e[5~": history-search-backward'
 | |
| 	bind '"\e[6~": history-search-forward'
 | |
| fi
 | |
| 
 | |
| source ~/.profile.d/load
 |