rename dot-files to non-dot, move pdf viewer to .bashrc.br
This commit is contained in:
@@ -13,5 +13,6 @@
|
||||
# 1) source .bashrc if it exists
|
||||
# 2) add "$HOME"/bin in PATH
|
||||
# This imply a duplicate "$HOME/bin" in PATH, as we do everything in .bashrc.$user.
|
||||
# Having this ~/.bash_profile will avoid the execution of ~/.profile
|
||||
|
||||
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
|
||||
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
|
@@ -156,6 +156,15 @@ else
|
||||
fi
|
||||
export EDITOR=$VISUAL
|
||||
|
||||
# look for a pdf viewer
|
||||
for _pdfviewer in qpdfview atril; do
|
||||
if hash "$_pdfviewer" 2>/dev/null; then
|
||||
alias acroread="$_pdfviewer"
|
||||
break
|
||||
fi
|
||||
done
|
||||
unset _pdfviewer
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
# write history after each command
|
@@ -15,12 +15,6 @@
|
||||
# i.e., add at the end of .bashrc.$USER:
|
||||
# [ -f "$HOME/.bashrc.$USER.$(hostname)" ] && . "$HOME/.bashrc.$USER.$(hostname)"
|
||||
|
||||
# ibus
|
||||
#export GTK
|
||||
|
||||
# look for a pdf viewer
|
||||
hash atril 2> /dev/null && alias acroread=atril
|
||||
|
||||
# mysql aliases. Will match any "[client-XXX]" lines in ~/.my.cnf
|
||||
# and generate "myXXX" aliases.
|
||||
if [[ -r ~/.my.cnf ]]; then
|
@@ -15,9 +15,6 @@
|
||||
# i.e., add at the end of .bashrc.$USER:
|
||||
# [ -f "$HOME/.bashrc.$USER.$(hostname)" ] && . "$HOME/.bashrc.$USER.$(hostname)"
|
||||
|
||||
# look for a pdf viewer
|
||||
hash atril 2> /dev/null && alias acroread=atril
|
||||
|
||||
# mysql aliases. Will match any "[client-XXX]" lines in ~/.my.cnf
|
||||
# and generate "myXXX" aliases.
|
||||
if [[ -r ~/.my.cnf ]]; then
|
Reference in New Issue
Block a user