Wiki Ordunix

Linux, FreeBSD, macOS, Windows et Histoire Informatique

Outils pour utilisateurs

Outils du site


wiki:download:nbsd:shrc

Ceci est une ancienne révision du document !


Fichier .shrc minimal

#	$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"

##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 ls='gls --color=auto -F'
alias gls='gls --color=auto -F -A'
alias gla='gls -A'
alias gll='gls -l'
alias glla='gls -Al'
#alias gls='gls --color=auto'
alias gdir='gdir --color=auto'
alias gvdir='gvdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias la='ls -A'
alias ll='ls -l'
alias lla='ls -Al'
#alias l='ls -CF'
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'
#commande linux coreutils#
#alias chgrp='gchgrp'
#alias chmod='gchmod'
#alias chown="gchown'
#alias chroot='gchroot'
#alias cp='gcp'
#alias cut='gcut'
#alias date='gdate'
#alias dd='gdd'
#alias df='gdf'
#alias dialog='gdialog'
#alias dir='gdir'
#alias du='gdu'
#alias env='genv'
#alias groupsg='groups'
#alias head='ghead'
#alias hostid='ghostid'
#alias id='gid'
#alias join='gjoin'
#alias kill='gkill'
#alias link='glink'
#alias ln='gln'
#alias logname='glogname'
#alias ls='gls'
#alias make='gmake'
#alias md5sum='gmd5sum'
#alias mkdir='gmkdir'
#alias mkfifo='gmkfifo'
#alias mknod='gmknod'
#alias mv='gmv'
#alias nice='gnice'
#alias nl='gnl'
#alias nohup='gnohup'
#alias paste='gpaste'
#alias printenv='gprintenv'
#alias printf='gprintf'
#alias pwd='gpwd'
#alias rm='grm'
#alias rmdir='grmdir'
#alias sha1sum='gsha1sum'
#alias sha224sum='gsha224sum'
#alias sha256sum='gsha256sum'
#alias sha384sum='gsha384sum'
#alias sha512sum='gsha512sum'
#alias shred='gshred'
#alias sleep='gsleep'
#alias sort='gsort'
#alias split='gsplit'
#alias sync='gsync'
#alias tac='gtac'
#alias tail='gtail'
#alias tar='gtar'
#alias touch='gtouch'
#alias tr='gtr'
#alias truncate='gtruncate'
#alias tsort='gtsort'
#alias tty='gtty'
#alias uname='guname'
#alias uniq='guniq'
#alias unlink='gunlink'
#alias uptime='guptime'
#alias users='gusers'
#alias vdir='gvdir'
#alias vim='gvim'
#alias vimdiff='gvimdiff'
#alias vimtutor='gvimtutor'
#alias wc='gwc'
#alias who='gwho'
#alias whoami='gwhoami'
#alias yes='gyes'
#alias zcat='gzcat'


## 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

Fichier .shrc avec commande GNU Coreutils

#	$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"

##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 ls='gls --color=auto -F'
alias gls='gls --color=auto -F -A'
alias gla='gls -A'
alias gll='gls -l'
alias glla='gls -Al'
#alias gls='gls --color=auto'
alias gdir='gdir --color=auto'
alias gvdir='gvdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias la='ls -A'
alias ll='ls -l'
alias lla='ls -Al'
#alias l='ls -CF'
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'
#commande linux coreutils#
#alias chgrp='gchgrp'
#alias chmod='gchmod'
#alias chown="gchown'
#alias chroot='gchroot'
#alias cp='gcp'
#alias cut='gcut'
#alias date='gdate'
#alias dd='gdd'
#alias df='gdf'
#alias dialog='gdialog'
#alias dir='gdir'
#alias du='gdu'
#alias env='genv'
#alias groupsg='groups'
#alias head='ghead'
#alias hostid='ghostid'
#alias id='gid'
#alias join='gjoin'
#alias kill='gkill'
#alias link='glink'
#alias ln='gln'
#alias logname='glogname'
#alias ls='gls'
#alias make='gmake'
#alias md5sum='gmd5sum'
#alias mkdir='gmkdir'
#alias mkfifo='gmkfifo'
#alias mknod='gmknod'
#alias mv='gmv'
#alias nice='gnice'
#alias nl='gnl'
#alias nohup='gnohup'
#alias paste='gpaste'
#alias printenv='gprintenv'
#alias printf='gprintf'
#alias pwd='gpwd'
#alias rm='grm'
#alias rmdir='grmdir'
#alias sha1sum='gsha1sum'
#alias sha224sum='gsha224sum'
#alias sha256sum='gsha256sum'
#alias sha384sum='gsha384sum'
#alias sha512sum='gsha512sum'
#alias shred='gshred'
#alias sleep='gsleep'
#alias sort='gsort'
#alias split='gsplit'
#alias sync='gsync'
#alias tac='gtac'
#alias tail='gtail'
#alias tar='gtar'
#alias touch='gtouch'
#alias tr='gtr'
#alias truncate='gtruncate'
#alias tsort='gtsort'
#alias tty='gtty'
#alias uname='guname'
#alias uniq='guniq'
#alias unlink='gunlink'
#alias uptime='guptime'
#alias users='gusers'
#alias vdir='gvdir'
#alias vim='gvim'
#alias vimdiff='gvimdiff'
#alias vimtutor='gvimtutor'
#alias wc='gwc'
#alias who='gwho'
#alias whoami='gwhoami'
#alias yes='gyes'
#alias zcat='gzcat'


## 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
wiki/download/nbsd/shrc.1787341046.txt.gz · Dernière modification : de Thibault Seguin