Add bash config w/ aliases

master
Hektor Misplon 2020-04-07 20:24:30 +00:00
parent 8efea7b12e
commit 0ba4b9bd52
2 changed files with 37 additions and 0 deletions

20
.aliasrc Normal file
View File

@ -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'

17
.bashrc Normal file
View File

@ -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