Merge branch 'main' of https://git.faronear.org/fon/sysconfig
This commit is contained in:
commit
8df479e7a1
@ -13,7 +13,7 @@
|
|||||||
# Execute system startup script:
|
# Execute system startup script:
|
||||||
if [ -f /etc/profile ]
|
if [ -f /etc/profile ]
|
||||||
then
|
then
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define primary prompt (default is '$'):
|
# 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.
|
# 2. only shell needs this variable, other programs normally don't need it.
|
||||||
# Note 2: Add current directory to PATH is dangerous!
|
# Note 2: Add current directory to PATH is dangerous!
|
||||||
#if [ -e ~/bin/addpath.sh ] then
|
#if [ -e ~/bin/addpath.sh ] then
|
||||||
# . ~/bin/addpath.sh ~/bin
|
# . ~/bin/addpath.sh ~/bin
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
# Define aliases:
|
# Define aliases:
|
||||||
|
|
||||||
# Think twice before deletion. Though troublesome but strongly recommended!
|
# Think twice before deletion. Though troublesome but strongly recommended!
|
||||||
alias rm='rm -i'
|
alias rm='rm -i'
|
||||||
|
|
||||||
# Request X tunneling for SSH:
|
# Request X tunneling for SSH:
|
||||||
alias ssh='ssh -C -X'
|
alias ssh='ssh -C -X'
|
||||||
|
|
||||||
# Do not verify Host Key change:
|
# Do not verify Host Key change:
|
||||||
alias sshtrust='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
|
alias sshtrust='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
|
||||||
|
|
||||||
# Always use compression for CVS:
|
# Always use compression for CVS:
|
||||||
alias cvs='cvs -z9'
|
alias cvs='cvs -z9'
|
||||||
|
|
||||||
alias ps='ps -elf'
|
alias ps='ps -elf'
|
||||||
|
|
||||||
|
alias emacs='emacs -nw'
|
||||||
|
|
||||||
# Always list long directory and time.
|
# Always list long directory and time.
|
||||||
if [[ "$(uname)" = "Darwin" ]];
|
if [[ "$(uname)" = "Darwin" ]];
|
||||||
then
|
then
|
||||||
alias l='ls -lG'
|
alias l='ls -lG'
|
||||||
alias ll='ls -lGA' # show .xxx
|
alias ll='ls -lGA' # show .xxx
|
||||||
@ -57,7 +63,7 @@ else
|
|||||||
alias ll='ls -lA --color=auto'
|
alias ll='ls -lA --color=auto'
|
||||||
alias dir='ls -lA --color=auto'
|
alias dir='ls -lA --color=auto'
|
||||||
alias lll='ls -la --color=auto'
|
alias lll='ls -la --color=auto'
|
||||||
alias emacs='emacs -nw'
|
export TIME_STYLE='+%Y-%m-%d--%H:%M:%S'
|
||||||
fi
|
fi
|
||||||
#export LS_OPTIONS='--color=auto' # 如果没有指定,则自动选择颜色
|
#export LS_OPTIONS='--color=auto' # 如果没有指定,则自动选择颜色
|
||||||
#export CLICOLOR='Yes' #是否输出颜色
|
#export CLICOLOR='Yes' #是否输出颜色
|
||||||
@ -74,7 +80,6 @@ case "$TERM" in
|
|||||||
PROMPT_COMMAND='echo -ne "\033]0;[${USER}@${HOSTNAME}:${PWD}]B\007"'
|
PROMPT_COMMAND='echo -ne "\033]0;[${USER}@${HOSTNAME}:${PWD}]B\007"'
|
||||||
;;
|
;;
|
||||||
dumb*)
|
dumb*)
|
||||||
alias ll='ls -al --time-style=long-iso'
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user