Add bash config w/ aliases
							parent
							
								
									8efea7b12e
								
							
						
					
					
						commit
						0ba4b9bd52
					
				| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
alias bashrc="vim ~/.bashrc"
 | 
			
		||||
alias aliasrc="vim ~/.aliasrc"
 | 
			
		||||
 | 
			
		||||
alias ls="ls --color=auto"
 | 
			
		||||
alias grep="grep --color=auto"
 | 
			
		||||
 | 
			
		||||
alias l='ls -lh'
 | 
			
		||||
alias la='ls -lha'
 | 
			
		||||
 | 
			
		||||
alias lgrep='l . | grep'
 | 
			
		||||
alias lagrep='la . | grep'
 | 
			
		||||
 | 
			
		||||
alias vi='vim'
 | 
			
		||||
alias py='python'
 | 
			
		||||
alias cfg='/usr/bin/git --git-dir=/home/h/.cfg/ --work-tree=/home/h'
 | 
			
		||||
alias now='date "+%I:%M %a %d %b"'
 | 
			
		||||
alias brt='xbacklight -set'
 | 
			
		||||
alias bat='cat /sys/class/power_supply/BAT0/capacity'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
# If not running interactively, don't do anything
 | 
			
		||||
[[ $- != *i* ]] && return
 | 
			
		||||
 | 
			
		||||
# load aliases dynamically
 | 
			
		||||
[ -f "$HOME/.aliasrc" ] && source "$HOME/.aliasrc"
 | 
			
		||||
 | 
			
		||||
PS1='\u@\h \W\$ '
 | 
			
		||||
 | 
			
		||||
# nvm
 | 
			
		||||
source /usr/share/nvm/init-nvm.sh
 | 
			
		||||
 | 
			
		||||
# auto cd on path
 | 
			
		||||
shopt -s autocd
 | 
			
		||||
 | 
			
		||||
# history
 | 
			
		||||
export HISTCONTROL=ignoreboth
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue