1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- # ~/.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
- #URL with an explanation of .bashrc, .bash_profile, etc.
- #(rationale of my modularization):
- #https://www.baeldung.com/linux/bashrc-vs-bash-profile-vs-profile
- # 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
- source ~/.aliases
- #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
- #???
- #echo -ne "\x1b[1 q"
- #printf %b '\e]12;red\a'
|