123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- # ~/.bashrc: executed by bash (1) for non-login shells.
- # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
- # for examples
- #set -o vi
- #export GIT_ASKPASS=
- #export SSH_ASKPASS=
- export PASSWORD_STORE_CLIP_TIME=180
- export SSH_AUTH_SOCK="/run/user/$(id -u)/gnupg/S.gpg-agent.ssh"
- export CUPS_GSSSERVICENAME="ipp"
- #export XAUTHORITY=~/.Xauthority
- #export CALCURSE_CALDAV_PASSWORD="$(~/.config/vdirsyncer/imta-password.sh) calcurse-caldav"
- export CLASSPATH=${CLASSPATH}:.
- #export NXJ_HOME="/home/jcb/workspace/lejos_nxj"
- #export LEJOS_CLASSPATH="/home/jcb/workspace/lejos_nxj/lib/classes.jar"
- #export JAVA_3D="/usr/share/sun-java3d-bin/lib/j3dcore.jar:/usr/share/sun-java3d-bin/lib/j3dutils.jar"
- #export JAVA_OPTS="-Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -d32 -Djava.awt.headless=true"
- #export JAVA_OPTS="-d64":$JAVA_OPTS
- #=============================================================================
- # tom
- #export TOM_HOME=${HOME}/tom/git-repo/src/dist
- #Tom stable local
- #export TOM_HOME=${HOME}/tom/git-repo/stable/dist
- #export PATH=${TOM_HOME}/bin:${LEJOS_PATH}:${PATH}
- #old method:
- #export TOM_LIB=`echo ${TOM_HOME}/lib/*/*.jar | tr ' ' ':'`
- #export TOM_RUNTIME=`echo ${TOM_HOME}/lib/runtime/*.jar | tr ' ' ':'`
- #export TOM_TOOLS=`echo ${TOM_HOME}/lib/tools/*.jar | tr ' ' ':'`
- #export TOM_CLASSPATH=${TOM_RUNTIME}:${TOM_LIB}:${TOM_TOOLS}
- #export TOM_EMF_CLASSPATH=`echo ${TOM_HOME}/lib/tools/org.eclipse.*.jar | tr ' ' ':'`
- #export TOM_EMF_CLASSPATH=`echo ${TOM_HOME}/lib/tools/org.eclipse.emf.*.jar | tr ' ' ':'`
- #export CLASSPATH=/home/jcb/workspace/ipp/work/lib/jgll.jar:${TOM_EMF_CLASSPATH}:${CLASSPATH} #
- #:${EMF_CLASSPATH} #:${SYS_CLASSPATH} # #:${PLUGINECLIPSE_CLASSPATH} #::${LEJOS_CLASSPATH}"
- #new method:
- #export CLASSPATH=${TOM_HOME}/lib/tom-runtime-full.jar:${TOM_HOME}lib/tom-compiler-full.jar:${CLASSPATH}
- #export ADA_INCLUDE_PATH=${TOM_HOME}/lib/compiletime/sl-ada:${ADA_INCLUDE_PATH}
- #=============================================================================
- export SCALA_CLASSPATH=${HOME}/dl/scala-swing_2.11-2.0.0-M2.jar
- export CLASSPATH=${CLASSPATH}:${SCALA_CLASSPATH}
- #=============================================================================
- #export W3MIMGDISPLAY_PATH=/usr/libexec/w3m/w3mimgdisplay
- HOMEINSTALLPREFIX=${HOME}/install
- HOMEINSTALLPATH=${HOMEINSTALLPREFIX}:${HOMEINSTALLPREFIX}/activator-dist-1.3.7/:${HOMEINSTALLPREFIX}/compcert/bin:${HOMEINSTALLPREFIX}/tor-browser/:${HOMEINSTALLPREFIX}/ltsatool/:${HOMEINSTALLPREFIX}/AtelierB/atelierb-4.2/:${HOMEINSTALLPREFIX}/jgrasp:${HOMEINSTALLPREFIX}/cesium_duniter/nw/:${HOMEINSTALLPREFIX}/cesium_duniter/:${HOMEINSTALLPREFIX}/duniter/:${HOMEINSTALLPREFIX}/duniter/bin/:${HOMEINSTALLPREFIX}/evince_syntex:${HOME}/.dwarf-fortress/:${HOMEINSTALLPREFIX}/opam/:${HOMEINSTALLPREFIX}/vcstool/bin/:${HOMEINSTALLPREFIX}/JabRef/bin:${HOMEINSTALLPREFIX}/Battery/:${HOMEINSTALLPREFIX}/spark/
- #:${HOMEINSTALLPREFIX}/ddgr/bin/:${HOMEINSTALLPREFIX}/tuir/
- GITPREFIX=${HOME}/git-repo
- GITPATH=${GITPREFIX}/imgur-screenshot/:${GITPREFIX}/taf-ilsd/contenu/fiab/kbrw/imt_order_chapitre2/:${GITPREFIX}/mdr/:${GITPREFIX}/glow/
- CARGOBIN=${HOME}/.cargo/bin
- CABALBIN=${HOME}/.cabal/bin
- LOCALBIN=${HOME}/.local/bin
- #:~/pharo/Pillar/
- MYPATH=~/eclipseSoft/:${TOM_HOME}/install/pharo/:${TOM_HOME}/bin:${HOMEINSTALLPATH}:${CABALBIN}:${LOCALBIN}:${CARGOBIN}:${GITPATH}:${HOMEINSTALLPATH}/tor-browser
- ### TEXINPUTS ###
- export TEXDIR=${HOME}/install/TEXDIR
- #pour latex et makeDoc.pl dans info-utils/
- INFO_UTILS=${HOME}/svn/info-utils
- SEMASCOP=${HOME}/git-repo/semascop
- SEMASCOP_TEXINPUTS=${SEMASCOP}/tex-utils:${SEMASCOP}/tex-utils/Modele
- CAPRICA=${HOME}/git-repo/caprica
- #OLD_CAPRICA_COMMON_ASSETS_DIR=${CAPRICA}/common-assets/tex/latex
- #OLD_CAPRICA_COMMON_ASSETS=${OLD_CAPRICA_COMMON_ASSETS_DIR}/common-assets/images:${OLD_CAPRICA_COMMON_ASSETS}/common-assets/signatures:${OLD_CAPRICA_COMMON_ASSETS}/beamer-Arkea:${OLD_CAPRICA_COMMON_ASSETS}/beamer-Arkea/images:
- #OLD_CAPRICA_BEAMER_THEMES_DIR=${CAPRICA}/beamer-themes/tex/latex
- #OLD_CAPRICA_BEAMER_THEMES=${OLD_CAPRICA_BEAMER_THEMES_DIR}/common-assets/images:${OLD_CAPRICA_BEAMER_THEMES_DIR}/beamer-Arkea:${OLD_CAPRICA_BEAMER_THEMES_DIR}/beamer-Arkea/images
- #OLD_CAPRICA_STUFF=${OLD_CAPRICA_COMMON_ASSETS_DIR}:${OLD_CAPRICA_BEAMER_THEMES}
- CAPRICA_COMMON_ASSETS_DIR=${CAPRICA}/common-assets
- CAPRICA_COMMON_ASSETS=`echo ${CAPRICA_COMMON_ASSETS_DIR}/* | tr ' ' ': '`
- CAPRICA_BEAMER_THEMES_DIR==${CAPRICA}/beamer-themes
- CAPRICA_BEAMER_THEMES=`echo ${CAPRICA_BEAMER_THEMES_DIR}/* | tr ' ' ': '`
- CAPRICA_LATEX_ASSETS_DIR=${CAPRICA}/latex-assets
- CAPRICA_LATEX_ASSETS=`echo ${CAPRICA_LATEX_ASSETS_DIR}/* | tr ' ' ': '`
- #${OLD_CAPRICA_STUFF}:
- CAPRICA_TEXINPUTS=${CAPRICA_COMMON_ASSETS}:${CAPRICA_BEAMER_THEMES}:${CAPRICA_LATEX_ASSETS}
- #export BIBINPUTS=${HOME}/recherche/jabrefBibs
- #.bib de Benjamin
- export BIBINPUTS=.:${HOME}/git-repo/caprica/bibliography/bib/
- export TEXINPUTS=.:${INFO_UTILS}:${INFO_UTILS}/styles/trunk:${INFO_UTILS}/images:${INFO_UTILS}/images/CC:${SEMASCOP_TEXINPUTS}:${CAPRICA_TEXINPUTS}:${TEXDIR}:${HOME}/git-repo/betterIMTABeamerTemplate/:
- ### /TEXINPUTS ###
- export OTHERPATH=/usr/share/fslint/fslint
- export PATH=${MYPATH}:/usr/bin:/usr/sbin:${INFO_UTILS}/scripts:${OTHERPATH}:${PATH}
- #:${HOME}/.mozilla/native-messaging-hosts
- ##test go & gogs
- #export GOROOT=$HOME/install/local/go >> $HOME/.bashrc
- #export GOPATH=$HOME/install/go >> $HOME/.bashrc
- #export PATH=$PATH:$GOROOT/bin:$GOPATH/bin >> $HOME/.bashrc
- #warn the vm that xmonad is non-reparenting
- export _JAVA_AWT_WM_NONREPARENTING=1
- #export AWT_TOOLKIT=XToolkit
- export AWT_TOOLKIT=MToolkit
- #export LC_ALL="en_GB.UTF-8"
- #export LANG="en_GB.UTF-8"
- # If running interactively, then:
- if [ "$PS1" ]; then
- # don't put duplicate lines in the history. See bash(1) for more options
- # export HISTCONTROL=ignoredups
- # check the window size after each command and, if necessary,
- # update the values of LINES and COLUMNS.
- #shopt -s checkwinsize
- # enable color support of ls and also add handy aliases
- if [ "$TERM" != "dumb" ]; then
- eval `dircolors -b`
- alias ls='ls --color=auto'
- alias dir='ls --color=auto --format=vertical'
- alias vdir='ls --color=auto --format=long'
- fi
- # some more aliases
- alias screen='screen -U'
- alias lq='ls'
- alias ll='ls -l'
- alias l.='ls -a'
- alias lh='ls -lh'
- alias la='ls -A'
- alias lla='ls -lA'
- alias l='ls -CF'
-
- alias dfh='df -Ph'
- alias dh='du -h'
- alias rtfm='man'
- alias please='sudo'
- alias stxl='startx & logout'
- alias metapost='mpost'
- alias rexima="rexima -d /dev/mixer1 "
- alias 49.3="sudo history -p \!\!"
- alias ni='nice -n 19 ionice -c3'
- alias sl='sl -al'
- alias xclipass='function _xclipass(){ pass $1 | xclip -r;};_xclipass'
- #alias xclipass='pass $1 | xclip -r'
- alias gitlog='git log --stat --pretty=short --graph'
- #alias libreoffice='libreoffice --nosplash'
- #alias tuir='tuir.sh'
- alias open='xdg-open'
- #open () {
- # xdg-open "$@" &>/dev/null
- # }
- alias gqview='geeqie'
- alias vscode='code'
- alias mplayerhw2='mplayer -ao alsa:device=hw=2.0'
- alias mplayerhw3='mplayer -ao alsa:device=hw=3.0'
- alias valls='man'
- #alias gdb='gdb --tui'
-
- alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
- #alias :q="exit"
- #alias :wq="exit"
- alias :e="vim "
- alias :w="cowsay 'You are not in vim anymore.'"
- alias :q="cowsay 'You are not in vim anymore.'"
- alias :wq="cowsay 'You are not in vim anymore.'"
- alias :x="cowsay 'You are not in vim anymore.'"
- #replace nbsp by spaces
- bind $'"\u00a0":" "'
- # set a fancy prompt
- #PS1='\u@\h:\w\$ '
-
- #bleu \033[01;34m\]
- #rouge \033[01;31m\]
- #jaune \033[02;33m\]
- #vert \033[02;32m\]
- # ------------------------------------------------------------------- #
- # http://gentoo-wiki.com/TIP_Prompt_Magic #
- # http://www-128.ibm.com/developerworks/linux/library/l-tip-prompt/ #
- # ------------------------------------------------------------------- #
- CRESET="\[\e[0;0m\]"
- CRESET_BOLD="\[\e[0;1m\]"
- BLUE="\[\e[0;34m\]"
- LBLUE="\[\e[1;34m\]"
- RED="\[\e[0;31m\]"
- RED_BOLD="\[\e[1;31m\]"
- LRED="\[\e[1;31m\]"
- MAGENTA="\[\e[0;35m\]"
- LMAGENTA="\[\e[1;35m\]"
- CYAN="\[\e[0;36m\]"
- LCYAN="\[\e[1;36m\]"
- GREEN="\[\e[0;32m\]"
- LGREEN="\[\e[1;32m\]"
- YELLOW="\[\e[0;33m\]"
- YELLOW_BOLD="\[\e[1;33m\]"
- ORANGE="\[\e[0;33m\]"
- GREY="\[\e[0;37m\]"
- #prompt de couleur :' \033[01;34m\]........\033[00m\]'
- #CHARGE=`~/batteryCharge.sh`
- #old#PS1='\033[01;31m\]\u\033[00m\]\033[02;33m\]@\033[00m\]\t>\W$ '
-
- #. /home/jcb/gitbashprompt
- #test remplacement par gitbashprompt
- PS1="${RED_BOLD}\u${CRESET}${YELLOW}@${CYAN}\h${CRESET}${YELLOW}#${CRESET}\t>\W${GREEN}\$${CRESET}"
- # If this is an xterm set the title to user@host:dir
- case $TERM in
- xterm*)
- PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
- ;;
- *)
- ;;
- esac
- # enable programmable completion features (you don't need to enable
- # this, if it's already enabled in /etc/bash.bashrc).
- if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- fi
- #personal patch :
- #http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html
- #if [ "$PS1" ] ; then
- # mkdir -m 0700 /sys/fs/cgroup/cpu/user/$$
- # echo $$ > /sys/fs/cgroup/cpu/user/$$/tasks
- #or
- # mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ > /dev/null 2>&1
- # echo $$ > /dev/cgroup/cpu/user/$$/tasks
- # echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
- #fi
- # then :
- #mount -t cgroup cgroup /sys/fs/cgroup/cpu -o cpu
- #mkdir -m 0777 /sys/fs/cgroup/cpu/user
- export SWT_GTK3=0
- #pas supporté par GTK3
- #export GDK_NATIVE_WINDOWS=1
- export NO_AT_BRIDGE=1
- #???
- #export GPG_TTY=`tty`
- #export OCAMLPATH=${OCAMLPATH}:${HOME}/.opam
- #export OCAMLPATH=${OCAMLPATH}:/usr/lib64/ocaml/
- eval `opam config env`
- #echo -ne "\x1b[1 q"
- #printf %b '\e]12;red\a'
- #to make terminology work with input methods
- export ECORE_IMF_MODULE="xim"
- export XMODIFIERS="@im=none"
- export SCIPY_PIL_IMAGE_VIEWER=eog
- #feh
- #try to solve an xmobar/dbus problem:
- export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
- export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
- #try to solve anothe pb (telegram, pas d'accents, => ibus-setup)
- #export GTK_IM_MODULE=ibus
- #export XMODIFIERS=@im=ibus
- #export QT_IM_MODULE=ibus
- #???
- #echo "UPDATESTARTUPTTY" | gpg-connect-agent > /dev/null 2>&1
- #c'est censé utiliser l'accélération matérielle si possible dans Firefox
- #export MOZ_USE_OMTC=1
- #export SCIPY_PIL_IMAGE_VIEWER=display
|