wiki:download:nbsd:bashrc
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| wiki:download:nbsd:bashrc [2026/08/21 10:18] – créée Thibault Seguin | wiki:download:nbsd:bashrc [2026/08/21 20:42] (Version actuelle) – Thibault Seguin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ===== Fichier .bashrc minimal ===== | ||
| + | < | ||
| + | # | ||
| + | # This file contains an example of default settings that can be made for | ||
| + | # bash(1) users on this system. | ||
| + | # users, you will need to copy it to / | ||
| + | # | ||
| + | # Bourne Again SHell init file. | ||
| + | # | ||
| + | umask 022 | ||
| + | |||
| + | # Where' | ||
| + | # | ||
| + | # | ||
| + | |||
| + | # | ||
| + | # | ||
| + | |||
| + | #if [ -d $HOME/bin ]; then | ||
| + | # MY_PATH=$MY_PATH: | ||
| + | #fi | ||
| + | |||
| + | #export PATH=" | ||
| + | |||
| + | # If not running interactively, | ||
| + | if [ -z " | ||
| + | return | ||
| + | fi | ||
| + | |||
| + | # Set ignoreeof if you don't want EOF as the sole input to the shell to | ||
| + | # immediately signal a quit condition. | ||
| + | # of a line if the line is empty, and you haven' | ||
| + | # with C-d. I turn this on in ~/ | ||
| + | # have the right to be obnoxious. | ||
| + | set -o ignoreeof | ||
| + | |||
| + | # Set auto_resume if you want to resume on " | ||
| + | # " | ||
| + | auto_resume=exact | ||
| + | |||
| + | # Set notify if you want to be asynchronously notified about background | ||
| + | # job completion. | ||
| + | set -o notify | ||
| + | |||
| + | # Make it so that failed `exec' commands don't flush this shell. | ||
| + | shopt -s execfail | ||
| + | |||
| + | if [ -z " | ||
| + | PS1=" | ||
| + | fi | ||
| + | |||
| + | # | ||
| + | MAILCHECK=60 | ||
| + | |||
| + | # | ||
| + | # we want pretty colored file listings | ||
| + | # | ||
| + | if [ -x / | ||
| + | if [ -f ~/ | ||
| + | eval " | ||
| + | elif [ -f ~/ | ||
| + | eval " | ||
| + | fi | ||
| + | fi | ||
| + | |||
| + | [ -f / | ||
| + | |||
| + | for s in / | ||
| + | test -r $s && . $s | ||
| + | done | ||
| + | |||
| + | for s in / | ||
| + | test -r $s && . $s | ||
| + | done | ||
| + | |||
| + | [ -f ~/ | ||
| + | |||
| + | [ -f ~/ | ||
| + | |||
| + | |||
| + | ################## | ||
| + | ## Ajouts Perso ## | ||
| + | ################## | ||
| + | ## Variables perso ## | ||
| + | export EDITOR="/ | ||
| + | export PAGER="/ | ||
| + | #export PATH=/ | ||
| + | #export PATH=/ | ||
| + | #export PATH=$PATH:/ | ||
| + | #export PATH=$PATH:/ | ||
| + | #export LANG=fr_FR.UTF-8 | ||
| + | export | ||
| + | #export LSCOLORS=" | ||
| + | |||
| + | ## | ||
| + | #export PATH=/ | ||
| + | |||
| + | # Invite de commandes personnalisée pour user et root | ||
| + | #debian | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | #if [[ ${EUID} == 0 ]] ; then | ||
| + | # PS1=" | ||
| + | #else | ||
| + | # PS1=" | ||
| + | #fi | ||
| + | #ubuntu | ||
| + | if [[ ${EUID} == 0 ]] ; then | ||
| + | PS1=' | ||
| + | else | ||
| + | PS1=' | ||
| + | fi | ||
| + | |||
| + | # Perso | ||
| + | #if [[ ${EUID} == 0 ]] ; then | ||
| + | # PS1=" | ||
| + | #else | ||
| + | # PS1=" | ||
| + | #fi | ||
| + | |||
| + | ## prompt bash personnel pour NetBSD ## | ||
| + | if [[ ${EUID} == 0 ]] ; then | ||
| + | PS1=' | ||
| + | else | ||
| + | PS1=' | ||
| + | fi | ||
| + | ## fin prompt bash personnel pour NetBSD ## | ||
| + | |||
| + | ## Bash completion | ||
| + | if ! shopt -oq posix; then | ||
| + | if [ -f / | ||
| + | . / | ||
| + | elif [ -f / | ||
| + | . / | ||
| + | fi | ||
| + | fi | ||
| + | |||
| + | |||
| + | ## Alias perso ## | ||
| + | |||
| + | # Bash aliases | ||
| + | if [ -f ~/ | ||
| + | . ~/ | ||
| + | fi | ||
| + | |||
| + | |||
| + | alias ls=' | ||
| + | #alias ls='ls -F' | ||
| + | alias la='ls -A' | ||
| + | alias ll='ls -l' | ||
| + | alias lla=' | ||
| + | #alias l='ls -CF' | ||
| + | alias grep=' | ||
| + | alias fgrep=' | ||
| + | alias egrep=' | ||
| + | alias wi=' | ||
| + | alias wr=' | ||
| + | alias h=' | ||
| + | #alias vi=' | ||
| + | alias pkg=' | ||
| + | alias mount_ext2fs=' | ||
| + | alias ntpdate-default='/ | ||
| + | alias pingbsd=' | ||
| + | alias pinggoogle=' | ||
| + | alias ftpdstart=' | ||
| + | alias ftpdstop=' | ||
| + | alias ftpdrun='/ | ||
| + | alias ftpdkill=' | ||
| + | alias httpdstart=' | ||
| + | alias httpdstop=' | ||
| + | alias httpdrun='/ | ||
| + | alias httpdkill=' | ||
| + | alias wgetippub=" | ||
| + | alias netstattcpudp=' | ||
| + | #alias telnetdstart='/ | ||
| + | #alias ddliveusb=' | ||
| + | #alias pkgin# | ||
| + | #alias pkglist=' | ||
| + | #alias pkginstall=' | ||
| + | #alias pkgupdate=' | ||
| + | #alias pkgremove=' | ||
| + | #alias pkgupgrade=' | ||
| + | #alias pkgfullupgrade=' | ||
| + | #alias pkgsearch=' | ||
| + | #alias pkgclean=' | ||
| + | #alias pkgautoremove=' | ||
| + | #alias pkgstats=' | ||
| + | |||
| + | |||
| + | ## Divers ## | ||
| + | # don't put duplicate lines or lines starting with space in the history. | ||
| + | # See bash(1) for more options | ||
| + | HISTCONTROL=ignoreboth | ||
| + | |||
| + | # append to the history file, don't overwrite it | ||
| + | shopt -s histappend | ||
| + | |||
| + | # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | ||
| + | HISTSIZE=1000 | ||
| + | HISTFILESIZE=2000 | ||
| + | |||
| + | # check the window size after each command and, if necessary, | ||
| + | # update the values of LINES and COLUMNS. | ||
| + | shopt -s checkwinsize | ||
| + | </ | ||
| + | |||
| + | ===== Fichier .bashrc avec commande GNU Coreutils ===== | ||
| < | < | ||
| # | # | ||
wiki/download/nbsd/bashrc.1787307537.txt.gz · Dernière modification : de Thibault Seguin
