===== Fichier .cshrc minimal ===== # $NetBSD: dot.cshrc,v 1.8 2018/03/01 06:12:09 snj Exp $ # # This is the default .cshrc file. # Users are expected to edit it to meet their own needs. # # The commands in this file are executed each time a new csh shell # is started. # # See csh(1) for details. # # Set your editor. Default to explicitly setting vi, as otherwise some # software will run ed and other software will fail. Can be set to # emacs or nano or whatever other editor you may prefer, but of course # those editors must be installed before you can use them. setenv EDITOR vi # vi settings: set show-match auto-indent always-redraw shift-width=4 #setenv EXINIT "se sm ai redraw sw=4" # VISUAL sets the "visual" editor, i.e., vi rather than ed, which if # set will be run by preference to $EDITOR by some software. It is # mostly historical and usually does not need to be set. #setenv VISUAL ${EDITOR} # Set the pager. This is used by, among other things, man(1) for # showing man pages. The default is "more". Another reasonable choice # (included with the system by default) is "less". #setenv PAGER more # Set your default printer, if desired. #setenv PRINTER change-this-to-a-printer # Set the search path for programs. set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \ /usr/local/{,s}bin) if ($?prompt) then # An interactive shell -- set some stuff up # Filename completion. set filec # Size of the history buffer. set history = 1000 # Do not exit on EOF condition (e.g. ^D typed) # (disabled by default, not default behavior) #set ignoreeof # Set the location of your incoming email for mail notification. set mail = (/var/mail/$USER) # Set the prompt to include the hostname. set mch = `hostname -s` set prompt = "${mch:q}: {\!} " endif ################## ## Ajouts Perso ## ################## ## Variables perso ## set prompt="\n%{\033[0;32m%}%n@%m:%{\033[0;33m%}%~%{\033[1;30m%}>%{\033\[1;37m%} " #set prompt="`whoami`@`hostname | sed 's/\..*//'`% " #setenv CLICOLOR true #set nobeep setenv LANG fr_FR.ISO8859-1 #setenv LANG fr_FR.UTF-8 #setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:~/bin #setenv PATH ${PATH}:/home/$USER/.bin:/home/$USER/.bin/busybox setenv PATH ${PATH}:${HOME}/.bin:${HOME}/.bin/busybox:/home/$USER/.local/bin #setenv LSCOLORS gxfxcxdxbxegedabagacad ##priorite utilitaire gnu #export PATH /usr/pkg/gnu/bin:${PATH}:/home/$USER/.bin/busybox ## 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 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 ddliveusb 'dd if=image.iso of=/dev/sda bs=1M conv=sync' ## Creer un live USB ===== Fichier .cshrc avec commande GNU Coreutils ===== # $NetBSD: dot.cshrc,v 1.8 2018/03/01 06:12:09 snj Exp $ # # This is the default .cshrc file. # Users are expected to edit it to meet their own needs. # # The commands in this file are executed each time a new csh shell # is started. # # See csh(1) for details. # # Set your editor. Default to explicitly setting vi, as otherwise some # software will run ed and other software will fail. Can be set to # emacs or nano or whatever other editor you may prefer, but of course # those editors must be installed before you can use them. setenv EDITOR vi # vi settings: set show-match auto-indent always-redraw shift-width=4 #setenv EXINIT "se sm ai redraw sw=4" # VISUAL sets the "visual" editor, i.e., vi rather than ed, which if # set will be run by preference to $EDITOR by some software. It is # mostly historical and usually does not need to be set. #setenv VISUAL ${EDITOR} # Set the pager. This is used by, among other things, man(1) for # showing man pages. The default is "more". Another reasonable choice # (included with the system by default) is "less". #setenv PAGER more # Set your default printer, if desired. #setenv PRINTER change-this-to-a-printer # Set the search path for programs. set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \ /usr/local/{,s}bin) if ($?prompt) then # An interactive shell -- set some stuff up # Filename completion. set filec # Size of the history buffer. set history = 1000 # Do not exit on EOF condition (e.g. ^D typed) # (disabled by default, not default behavior) #set ignoreeof # Set the location of your incoming email for mail notification. set mail = (/var/mail/$USER) # Set the prompt to include the hostname. set mch = `hostname -s` set prompt = "${mch:q}: {\!} " endif ################## ## Ajouts Perso ## ################## ## Variables perso ## set prompt="\n%{\033[0;32m%}%n@%m:%{\033[0;33m%}%~%{\033[1;30m%}>%{\033\[1;37m%} " #set prompt="`whoami`@`hostname | sed 's/\..*//'`% " #setenv CLICOLOR true #set nobeep setenv LANG fr_FR.ISO8859-1 #setenv LANG fr_FR.UTF-8 #setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:~/bin #setenv PATH ${PATH}:/home/$USER/.bin:/home/$USER/.bin/busybox setenv PATH ${PATH}:${HOME}/.bin:${HOME}/.bin/busybox:/home/$USER/.local/bin #setenv LSCOLORS gxfxcxdxbxegedabagacad ##priorite utilitaire gnu #export PATH /usr/pkg/gnu/bin:${PATH}:/home/$USER/.bin/busybox ## Alias perso ## alias ls colorls -FG #alias ls ls -F #alias ls gls --color=auto -F #alias ls ls -F alias gls gls --color=auto -F #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 pingbsd 'ping www.bsd.org' alias pinggoogle 'ping 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 ddliveusb 'dd if=image.iso of=/dev/sda bs=1M conv=sync' ## Creer un live USB