.bashrc: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre> | |||
# tools | |||
alias screen="screen -e ^Wa" | |||
alias more='less' | |||
alias mkpass='head -c8 /dev/random | uuencode -m - | sed -n '\''2s/=*$//;2p'\''' | |||
alias diffss='diff --width=120 --suppress-common-lines --side-by-side' | |||
alias ps="ps -auwwwxf" | |||
alias now='date +%Y%m%d%H%M%S' | |||
# openssl | |||
alias cert='openssl x509 -noout -subject -issuer -in ' | |||
alias key='openssl rsa -check -in ' | |||
alias csr='openssl req -text -noout -verify -in ' | |||
alias pkcs12='openssl pkcs12 -info -in ' | |||
#marty's ssl | |||
alias certcheck='openssl x509 -subject -issuer -dates -in ' | |||
alias x509='openssl x509 -subject -issuer -dates -noout' | |||
alias x509-long='openssl x509 -text -certopt no_header,no_sigdump,no_pubkey ' | |||
# hosts | |||
#export EDITOR=/bin/vi | |||
export EDITOR=/usr/bin/vi | |||
export CVSROOT=/var/cvs | |||
alias cvsls='find . | grep -v CVS' | |||
alias cvsstatus='cvs status | grep ^F | grep -v Up-to-date' | |||
alias cvsdiff='cvs diff --side-by-side --width=180 --suppress-common-lines' | |||
export HISTTIMEFORMAT='%F %T ' | |||
stty erase ^? | |||
# export PS1='[\u@\H \W]\$ ' | |||
# export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' | |||
alias nocomments='grep -Ev "^\s*#|^\s*$"' | |||
</pre> | |||
[[Category:Computers]] | [[Category:Computers]] |
Latest revision as of 14:48, 26 January 2018
# tools alias screen="screen -e ^Wa" alias more='less' alias mkpass='head -c8 /dev/random | uuencode -m - | sed -n '\''2s/=*$//;2p'\''' alias diffss='diff --width=120 --suppress-common-lines --side-by-side' alias ps="ps -auwwwxf" alias now='date +%Y%m%d%H%M%S' # openssl alias cert='openssl x509 -noout -subject -issuer -in ' alias key='openssl rsa -check -in ' alias csr='openssl req -text -noout -verify -in ' alias pkcs12='openssl pkcs12 -info -in ' #marty's ssl alias certcheck='openssl x509 -subject -issuer -dates -in ' alias x509='openssl x509 -subject -issuer -dates -noout' alias x509-long='openssl x509 -text -certopt no_header,no_sigdump,no_pubkey ' # hosts #export EDITOR=/bin/vi export EDITOR=/usr/bin/vi export CVSROOT=/var/cvs alias cvsls='find . | grep -v CVS' alias cvsstatus='cvs status | grep ^F | grep -v Up-to-date' alias cvsdiff='cvs diff --side-by-side --width=180 --suppress-common-lines' export HISTTIMEFORMAT='%F %T ' stty erase ^? # export PS1='[\u@\H \W]\$ ' # export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' alias nocomments='grep -Ev "^\s*#|^\s*$"'