Wiki Ordunix

Linux, FreeBSD, macOS, Windows et Histoire Informatique

Outils pour utilisateurs

Outils du site


wiki:download:nbsd:shrc_user

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_user [2026/08/21 12:58] – créée Thibault Seguinwiki:download:nbsd:shrc_user [2026/08/21 21:02] (Version actuelle) – [Fichier .shrc avec commande GNU Coreutils] Thibault Seguin
Ligne 1: Ligne 1:
 +===== Fichier .shrc minimal =====
 <file> <file>
 # $NetBSD: dot.shrc,v 1.3 2007/11/24 11:14:42 pavel Exp $ # $NetBSD: dot.shrc,v 1.3 2007/11/24 11:14:42 pavel Exp $
Ligne 56: Ligne 57:
 #fi #fi
  
 +
 +## Alias perso ##
 +alias ls='colorls -FG'
 +#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 pingbsd='ping www.bsd.org'
 +alias pinggoogle='ping www.google.fr'
 +alias lynxgoogle='lynx https://www.google.fr'
 +alias lynxddg='lynx https://duckduckgo.com/'
 +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 starxmate='startx /usr/pkg/bin/mate-session'
 +alias vboxnetbsd='vboxsdl --norawr0 --startvm'
 +alias vboxnetbsd71='vboxsdl --norawr0 --startvm NetBSD7.1VM32 &'
 +#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'
 +
 +
 +## 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.3 2007/11/24 11:14:42 pavel Exp $
 +
 +if [ -f /etc/shrc ]; then
 + . /etc/shrc
 +fi
 +
 +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:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/games:~/bin
 +#export PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
 +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
  
  
wiki/download/nbsd/shrc_user.1787317111.txt.gz · Dernière modification : de Thibault Seguin