|
@@ -1,52 +0,0 @@
|
|
-#
|
|
|
|
-# /etc/bash.bashrc
|
|
|
|
-#
|
|
|
|
-
|
|
|
|
-# If not running interactively, don't do anything
|
|
|
|
-[[ $- != *i* ]] && return
|
|
|
|
-
|
|
|
|
-[[ $DISPLAY ]] && shopt -s checkwinsize
|
|
|
|
-
|
|
|
|
-PS1='[\u@\h \W]\$ '
|
|
|
|
-
|
|
|
|
-case ${TERM} in
|
|
|
|
- xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
|
|
|
|
- PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
|
|
|
|
-
|
|
|
|
- ;;
|
|
|
|
- screen*)
|
|
|
|
- PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
|
|
|
|
- ;;
|
|
|
|
-esac
|
|
|
|
-
|
|
|
|
-[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-# ~/.bashrc: executed by bash(1) for non-login shells.
|
|
|
|
-
|
|
|
|
-# Note: PS1 and umask are already set in /etc/profile. You should not
|
|
|
|
-# need this unless you want different defaults for root.
|
|
|
|
-# PS1='${debian_chroot:+($debian_chroot)}\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'
|
|
|
|
-
|
|
|
|
- alias pa='ps aux'
|
|
|
|
- alias sc='systemctl'
|
|
|
|
-
|
|
|
|
-# Some more alias to avoid making mistakes:
|
|
|
|
-# alias rm='rm -i'
|
|
|
|
-# alias cp='cp -i'
|
|
|
|
-# alias mv='mv -i'
|
|
|
|
- alias tohtml='vim -c "TOhtml" -c ":w|:qa"'
|
|
|
|
-
|
|
|
|
-alias cls='clear'
|
|
|
|
-alias hg='history | grep --color=auto'
|
|
|
|
-alias ssr="http_proxy=http://127.0.0.1:1080 https_proxy=http://127.0.0.1:1080"
|
|
|
|
-alias grep='grep --color=auto'
|
|
|
|
-alias ssh='ssh -o ServerAliveInterval=60'
|
|
|