debian:bashrc

nano .bashrc

    # ~/.bashrc: executed by bash(1) for non-login shells.
    export PS1='\d\A\h:\w\! $ '
    umask 022
    # You may uncomment the following lines if you want `ls' to be colorized:
    # export LS_OPTIONS='--color=auto'
    # eval "`dircolors`"
    # alias ls='ls $LS_OPTIONS'
    # alias ll='ls $LS_OPTIONS -l'
    # alias l='ls $LS_OPTIONS -lA'
    #
    # Some more alias to avoid making mistakes:
    # alias rm='rm -i'
    # alias cp='cp -i'
    # alias mv='mv -i'
    alias fail='fail2ban-client status ssh && fail2ban-client status proftpd && fail2ban-client status'
    if [ "$PS1" ]; then
    alias cp="cp -i"
    alias mv="mv -i"
    alias rm="rm -i"
    alias ls="ls --color='always'"
    alias dir="dir --color='always'"
    alias grep="grep --color='always'"
    alias md="mkdir"
    alias rd="rmdir"
    alias cd..='cd ..'
    alias glxgears="glxgears -printfps"
    alias cdrom="mount -t iso9660 /dev/cdrom /mnt/cdrom"
    alias ll="ls -alh"
    alias la="ls -a"
    alias screenshot="import -pause 5 -window root"
    ROUGE='\[\033[0;31m\]'
    MARRON='\[\033[0;33m\]'
    NOC='\[\033[0;0m\]'
    PS1="$MARRON[\u@\h:$ROUGE\w$MARRON] \$ $NOC"
    fi
    alias ap="apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get autoclean && apt-get clean && apt-get autoremove && debclean"
    alias grep="grep --color=auto"
    export LS_OPTIONS='--color=auto'
    eval "`dircolors`"
    alias ls='ls $LS_OPTIONS --color=auto'
    alias ll='ls $LS_OPTIONS -al --color=auto'
    alias l='ll' 
 

  • debian/bashrc.txt
  • Dernière modification : 2022/11/08 16:43
  • de 127.0.0.1