From 58ecb4369e84e0d6bcd8501cf41d5b4de2c44d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E6=9F=AF?= Date: Sun, 26 Jun 2022 06:42:41 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'nixhome/.bashrc'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nixhome/.bashrc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/nixhome/.bashrc b/nixhome/.bashrc index dad5ae3..7f825c7 100644 --- a/nixhome/.bashrc +++ b/nixhome/.bashrc @@ -13,7 +13,7 @@ # Execute system startup script: if [ -f /etc/profile ] then - . /etc/profile + . /etc/profile fi # Define primary prompt (default is '$'): @@ -28,23 +28,29 @@ export CVS_RSH=ssh # 2. only shell needs this variable, other programs normally don't need it. # Note 2: Add current directory to PATH is dangerous! #if [ -e ~/bin/addpath.sh ] then -# . ~/bin/addpath.sh ~/bin +# . ~/bin/addpath.sh ~/bin #fi # Define aliases: + # Think twice before deletion. Though troublesome but strongly recommended! alias rm='rm -i' + # Request X tunneling for SSH: alias ssh='ssh -C -X' + # Do not verify Host Key change: alias sshtrust='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' + # Always use compression for CVS: alias cvs='cvs -z9' alias ps='ps -elf' +alias emacs='emacs -nw' + # Always list long directory and time. -if [[ "$(uname)" = "Darwin" ]]; +if [[ "$(uname)" = "Darwin" ]]; then alias l='ls -lG' alias ll='ls -lGA' # show .xxx @@ -57,7 +63,7 @@ else alias ll='ls -lA --color=auto' alias dir='ls -lA --color=auto' alias lll='ls -la --color=auto' - alias emacs='emacs -nw' + export TIME_STYLE='+%Y-%m-%d--%H:%M:%S' fi #export LS_OPTIONS='--color=auto' # 如果没有指定,则自动选择颜色 #export CLICOLOR='Yes' #是否输出颜色 @@ -74,7 +80,6 @@ case "$TERM" in PROMPT_COMMAND='echo -ne "\033]0;[${USER}@${HOSTNAME}:${PWD}]B\007"' ;; dumb*) - alias ll='ls -al --time-style=long-iso' ;; *) ;;