X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=bashrc;fp=bashrc;h=f23078a37992cc3795c97622ba7ebb28138750ad;hp=33e84b75df9eb4f180d1947db82dba9084af6f58;hb=4533cd84b6c05d62f049fba6f47530cb972f2194;hpb=ec86ffb8d47ff8576492ad423b6f59368e83ae0c diff --git a/bashrc b/bashrc index 33e84b7..f23078a 100644 --- a/bashrc +++ b/bashrc @@ -1,5 +1,8 @@ # -*-Shell-script-*- +# PS4='+ $(date "+%s.%N")\011 ' +# set -x + ######################################################################### # This program is free software: you can redistribute it and/or modify # # it under the terms of the version 3 of the GNU General Public License # @@ -206,7 +209,8 @@ function rl () { then if [[ "$1" == "-v" ]] || [[ "$1" == "--view" ]] then - xpdf "${FILEBASE}.pdf" + # xpdf "${FILEBASE}.pdf" + zathura "${FILEBASE}.pdf" elif [[ "$1" == "-p" ]] || [[ "$1" == "--print" ]] then lpr "${FILEBASE}.pdf" @@ -381,7 +385,7 @@ function cap () { fi echo "Please click on the window to capture." - xwd | convert - ${name} + xwd | convert xwd:- ${name} \ls -l ${name} } @@ -479,13 +483,7 @@ function dt () { } ###################################################################### -## ifup / ifdown with sudo and memorization of the network - -## When invoked without an argument netup uses the same argument as -## the previous time - -## When invoked without an argument netdown removes the last interface -## which was netuped +## ifup / ifdown with sudo [ ${NETUP_HISTORY} ] || NETUP_HISTORY="${HOME}/.netup_history" @@ -1088,7 +1086,7 @@ function prompt_command () { # multiple shells are open history -a # load the saved history - history -n + # history -n # and the local histories system defined above keep_local_history # and the history cue @@ -1104,3 +1102,10 @@ PROMPT_COMMAND="prompt_command" [[ ${TZ} ]] && echo "${VT_BLUE_FG}Time zone is ${TZ}.${VT_RESET}" ###################################################################### + +source /usr/share/bash-completion/bash_completion + +###################################################################### + +# added by Miniconda3 installer +export PATH="/home/fleuret/conda/bin:$PATH"