Update bash config

master
Hektor Misplon 2020-04-08 17:52:42 +00:00
parent 24746a6e13
commit bb725bacff
3 changed files with 2 additions and 8 deletions

View File

@ -14,7 +14,7 @@ alias vi='vim'
alias py='python' alias py='python'
alias cfg='/usr/bin/git --git-dir=/home/h/.cfg/ --work-tree=/home/h' alias cfg='/usr/bin/git --git-dir=/home/h/.cfg/ --work-tree=/home/h'
alias now='date "+%I:%M %a %d %b"' alias now='date "+%I:%M %a %d %b"'
alias brt='xbacklight -set' alias lm='xbacklight -set'
alias bat='cat /sys/class/power_supply/BAT0/capacity' alias bat='cat /sys/class/power_supply/BAT0/capacity'

View File

@ -1,10 +1,7 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc [[ -f ~/.bashrc ]] && . ~/.bashrc
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx exec startx
fi fi
export PATH=$PATH:~/.bin

View File

@ -9,9 +9,6 @@ PS1='\u@\h \W\$ '
# nvm # nvm
source /usr/share/nvm/init-nvm.sh source /usr/share/nvm/init-nvm.sh
# auto cd on path
shopt -s autocd
# history # history
export HISTCONTROL=ignoreboth export HISTCONTROL=ignoreboth