cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

dotfile:bashrc.html



My dotfiles

My .bashrc

My dotfiles


Table of Contents


~/.bashrc

# .bashrc

export TERM='xterm'
#export TERM='xterm-256color'


# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi


# alias
which vim > /dev/null 2>&1 && alias vi='vim'
which vim > /dev/null 2>&1 && alias view='vim -R'
alias less='less -X'

alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'

alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'


# history
HISTSIZE=10000
HISTFILESIZE=10000
HISTTIMEFORMAT='%Y-%m-%d_%T%z '
#HISTIGNORE="history*:pwd"




My dotfiles





My dotfiles




dotfile/bashrc.html.txt ยท Last modified: 2020/02/07 by admin

Page Tools