update .bashrc

This commit is contained in:
Cedric Girard 2019-03-28 15:21:05 +01:00
parent 40dc75fabf
commit a43b4bb8d0

View file

@ -2,30 +2,34 @@ source /etc/profile
# Check for an interactive session # Check for an interactive session
[ -z "$PS1" ] && return [ -z "$PS1" ] && return
##SSH Agent
eval $(keychain --eval --quiet id_ed25519)
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias ll='ls -l' alias ll='ls -l'
alias grep='grep -n --color' alias grep='grep -n --color'
alias bc='bc -l' alias bc='bc -l'
alias ip='ip --color=auto'
alias 1x='~/1x.sh' alias 1x='~/1x.sh'
alias xmlvalidator='rxp -s' alias xmlvalidator='rxp -s'
alias pdftojpg='convert -units PixelsPerInch -density 150x150 -antialias' alias pdftojpg='convert -units PixelsPerInch -density 150x150 -antialias'
alias dual='xrandr --auto --output LVDS1 --primary --mode 1366x768 --left-of VGA1 --output VGA1 --mode 1280x1024' alias dual='xrandr --auto --output LVDS1 --primary --mode 1366x768 --left-of VGA1 --output VGA1 --mode 1280x1024'
alias pacaur='proxychains4 -q pacaur'
export EDITOR=vim export EDITOR=vim
export PAGER=less export PAGER=less
export ARCH_HASKELL='Cedric Girard <girard.cedric@gmail.com>'
export XDG_CONFIG_HOME="/home/cgirard/.config" export XDG_CONFIG_HOME="/home/cgirard/.config"
export AURDEST=/var/lib/pacaurbuild
archmirrorupdate(){ archmirrorupdate(){
cp /etc/pacman.d/mirrorlist /tmp/mirrorlist_`date +%s` cp /etc/pacman.d/mirrorlist /tmp/mirrorlist_`date +%s`
wget -q 'https://www.archlinux.org/mirrorlist/?country=FR&protocol=http&protocol=https&ip_version=4&use_mirror_status=on' -O - | sed 's!^#!!' > /tmp/mirrorlist.new wget -q 'https://www.archlinux.org/mirrorlist/?country=FR&protocol=http&protocol=https&ip_version=4&use_mirror_status=on' -O - | sed 's!^#!!' > /tmp/mirrorlist.new
echo 'Server=http://seblu.net/a/arm/all' >> /tmp/mirrorlist.new echo 'Server=https://archive.archlinux.org/packages/.all' >> /tmp/mirrorlist.new
sudo cp /tmp/mirrorlist.new /etc/pacman.d/mirrorlist sudo cp /tmp/mirrorlist.new /etc/pacman.d/mirrorlist
sudo pacman -Syy sudo pacman -Syy
} }
#alias ssh='TERM=rxvt ssh'
svnlog(){ svnlog(){
svn log -v -r {`date -d "$1 days ago" +%F`}:HEAD svn log -v -r {`date -d "$1 days ago" +%F`}:HEAD
@ -35,6 +39,7 @@ svncommiterstats(){
svn log | perl -MData::Dumper -n -e'if (/^r\d+\s*\|\s*(\w+)\s*\|/) {$c{$1}++} END {print Dumper \%c}' svn log | perl -MData::Dumper -n -e'if (/^r\d+\s*\|\s*(\w+)\s*\|/) {$c{$1}++} END {print Dumper \%c}'
} }
export ARCH_HASKELL='Cedric Girard <girard.cedric@gmail.com>'
deploy_terminfo(){ deploy_terminfo(){
if [[ -n $1 ]] ; then if [[ -n $1 ]] ; then
@ -44,15 +49,24 @@ deploy_terminfo(){
} }
eval $(dircolors ~/.dircolors) eval $(dircolors ~/.dircolors)
#export PATH=$PATH:/home/cgirard/.gem/ruby/1.9.1/bin
#export GEM_HOME="~/.gem/ruby/1.9.1"
eval "$(rbenv init -)"
#export PYTHONPATH=/usr/lib/python3.3/site-packages
if [[ $TERM == xterm-termite ]]; then if [[ $TERM == xterm-termite ]]; then
. /etc/profile.d/vte.sh . /etc/profile.d/vte.sh
#PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'__vte_osc7' #PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'__vte_osc7'
source /usr/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh powerline-daemon -q
export POWERLINE_BASH_CONTINUATION=1
export POWERLINE_BASH_SELECT=1
source /usr/lib/python3.7/site-packages/powerline/bindings/bash/powerline.sh
fi fi
#Bash history #Bash history
export HISTSIZE=5000 export HISTSIZE=5000
export HISTCONTROL=ignoredups export HISTCONTROL=ignoredups:erasedups
shopt -s histappend shopt -s histappend
#local perl libs #local perl libs
@ -66,3 +80,15 @@ perl_local_perl5lib(){
#tmuxinator #tmuxinator
source /usr/lib/ruby/gems/*/gems/tmuxinator-*/completion/tmuxinator.bash source /usr/lib/ruby/gems/*/gems/tmuxinator-*/completion/tmuxinator.bash
#fzf
source /usr/share/fzf/completion.bash
export MOZ_USE_OMTC=1
export SPICE_NOGRAB=1
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland-egl
export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export _JAVA_AWT_WM_NONREPARENTING=1