Wiki Ordunix

Linux, FreeBSD, macOS, Windows et Histoire Informatique

Outils pour utilisateurs

Outils du site


wiki:download:nbsd:shrc

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
wiki:download:nbsd:shrc [2026/08/21 10:03] – créée Thibault Seguinwiki:download:nbsd:shrc [2026/09/16 12:46] (Version actuelle) – Thibault Seguin
Ligne 1: Ligne 1:
 +===== Fichier .shrc minimal =====
 <file> <file>
 # $NetBSD: dot.shrc,v 1.9 2022/07/21 07:53:28 kre Exp $ # $NetBSD: dot.shrc,v 1.9 2022/07/21 07:53:28 kre Exp $
Ligne 31: Ligne 32:
 export PATH=$PATH:/home/$USER/.bin:/home/$USER/.local/bin export PATH=$PATH:/home/$USER/.bin:/home/$USER/.local/bin
 #export PATH=$PATH:/usr/X11R7/bin:/home/$USER/.bin/busybox #export PATH=$PATH:/usr/X11R7/bin:/home/$USER/.bin/busybox
-#export LANG=fr_FR.UTF-8 +export LANG=fr_FR.UTF-8 
-export  LANG=fr_FR.ISO8859-1+#export  LANG=fr_FR.ISO8859-1 
 +#export LSCOLORS="gxfxcxdxbxegedabagacad" 
 + 
 +##priorite utilitaire gnu 
 +#export PATH=/usr/pkg/gnu/bin:$PATH:/home/$USER/.bin/busybox 
 + 
 +# Invite de commandes personnalisée pour user et root 
 +#debian 
 +#VERT='\[\033[0;32m\]' 
 +#ROUGE='\[\033[0;33m\]' 
 +#BLANC='\[\033[1;37m\]' 
 +#NC='\[\033[0m\]' 
 + 
 +#if [[ ${EUID} == 0 ]] ; then 
 +#        PS1="$ROUGE[$BLANC\u$NC@$BLANC\h$NC:$BLANC\w$ROUGE]#$NC" 
 +#else 
 +#        PS1="$VERT[$BLANC\u$NC@$BLANC\h$NC:$BLANC\w$VERT]\$$NC" 
 +#fi 
 +#ubuntu 
 +#if [[ ${EUID} == 0 ]] ; then 
 +#                PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' 
 +#        else 
 +#                PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' 
 +#        fi 
 + 
 +# Perso 
 +#if [[ ${EUID} == 0 ]] ; then 
 +#        PS1="\[\033[38;5;1m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;33m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;228m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\\$\[$(tput sgr0)\]" 
 +#else 
 +#        PS1="\[\033[38;5;10m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;33m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;228m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\\$\[$(tput sgr0)\]" 
 +#fi 
 + 
 + 
 +## Alias perso ## 
 + 
 +# Bash aliases 
 +if [ -f ~/.bash_aliases ]; then 
 +    . ~/.bash_aliases 
 +fi 
 + 
 + 
 +alias ls='colorls -FGA' 
 +#alias ls='ls -F' 
 +alias la='ls -A' 
 +alias ll='ls -l' 
 +alias lla='ls -Al' 
 +#alias l='ls -CF' 
 +alias grep='grep --color=auto' 
 +alias fgrep='fgrep --color=auto' 
 +alias egrep='egrep --color=auto' 
 +alias wi='which' 
 +alias wr='whereis' 
 +alias h='history' 
 +#alias vi='vim' 
 +alias pkg='pkgin' 
 +alias mount_ext2fs='mount -t ext2fs' 
 +alias ntpdate-default='/usr/sbin/ntpdate 0.fr.pool.ntp.org' 
 +alias pingbsd='ping www.bsd.org' 
 +alias pinggoogle='ping www.google.fr' 
 +alias ftpdstart='service ftpd onestart' 
 +alias ftpdstop='service ftpd onestop' 
 +alias ftpdrun='/usr/libexec/ftpd -ll -D' 
 +alias ftpdkill='pkill ftpd' 
 +alias wgetippub="wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1" 
 +alias netstattcpudp='netstat -an | grep -v stream | grep -v dgram' 
 +#alias ddliveusb='dd if=image.iso of=/dev/sda bs=1M conv=sync' ## Creer un live USB 
 +#alias pkgin# 
 +#alias pkglist='pkgin list' 
 +#alias pkginstall='pkgin intall' 
 +#alias pkgupdate='pkgin update' 
 +#alias pkgremove='pkgin remove' 
 +#alias pkgupgrade='pkgin upgrade' 
 +#alias pkgfullupgrade='pkgin fullupgrade' 
 +#alias pkgsearch='pkgin search' 
 +#alias pkgclean='pkgin clean' 
 +#alias pkgautoremove='pkgin autoremove' 
 +#alias pkgstats='pkgin stats' 
 +alias findports="find /usr/pkgsrc -iname" 
 + 
 + 
 +## Divers ## 
 +# don't put duplicate lines or lines starting with space in the history. 
 +# See bash(1) for more options 
 +##HISTCONTROL=ignoreboth 
 + 
 +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 
 +##HISTSIZE=1000 
 +##HISTFILESIZE=2000 
 +</file> 
 + 
 +===== Fichier .shrc avec commande GNU Coreutils ===== 
 +<file> 
 +# $NetBSD: dot.shrc,v 1.9 2022/07/21 07:53:28 kre Exp $ 
 + 
 +if [ -f /etc/shrc ]; then 
 + . /etc/shrc 
 +fi 
 + 
 +hup() 
 +{ 
 + test -s "/var/run/$1.pid" || { 
 + printf >&2 'No pid file for %s\n' "$1" 
 + return 1 
 + } 
 + { read pid; kill -HUP "$pid"; } <"/var/run/$1.pid" 
 +} 
 + 
 +case "$-" in *i*) 
 + # interactive mode settings go here 
 + ;; 
 +esac 
 + 
 + 
 +################## 
 +## Ajouts Perso ## 
 +################## 
 +## Variables perso ## 
 +export EDITOR="/usr/pkg/bin/vim" 
 +export PAGER="/usr/bin/less" 
 +#export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/games:~/bin 
 +#export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin 
 +export PATH=$PATH:/home/$USER/.bin:/home/$USER/.local/bin 
 +#export PATH=$PATH:/usr/X11R7/bin:/home/$USER/.bin/busybox 
 +export LANG=fr_FR.UTF-8 
 +#export  LANG=fr_FR.ISO8859-1
 #export LSCOLORS="gxfxcxdxbxegedabagacad" #export LSCOLORS="gxfxcxdxbxegedabagacad"
  
Ligne 107: Ligne 232:
 alias netstattcpudp='netstat -an | grep -v stream | grep -v dgram' alias netstattcpudp='netstat -an | grep -v stream | grep -v dgram'
 #alias ddliveusb='dd if=image.iso of=/dev/sda bs=1M conv=sync' ## Creer un live USB #alias ddliveusb='dd if=image.iso of=/dev/sda bs=1M conv=sync' ## Creer un live USB
 +alias findports="find /usr/pkgsrc -iname"
 #alias pkgin# #alias pkgin#
 #alias pkglist='pkgin list' #alias pkglist='pkgin list'
Ligne 199: Ligne 325:
 ##HISTSIZE=1000 ##HISTSIZE=1000
 ##HISTFILESIZE=2000 ##HISTFILESIZE=2000
- 
 </file> </file>
wiki/download/nbsd/shrc.1787306610.txt.gz · Dernière modification : de Thibault Seguin