Add .bashrc

This commit is contained in:
Disassembler 2017-06-29 11:38:48 +02:00
parent 9ccc86ecb0
commit 9843a5d94c
2 changed files with 28 additions and 2 deletions

View File

@ -6,7 +6,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))
apt-get -y purge bsdmainutils dictionaries-common emacsen-common gnupg gnupg-agent iamerican ibritish ienglish-common installation-report ispell laptop-detect nano os-prober pinentry-curses task-english tasksel tasksel-data wamerican
# Install useful packages
apt-get -y --no-install-recommends install ca-certificates ntp openssl sudo unzip
apt-get -y --no-install-recommends install bash-completion ca-certificates ntp openssl sudo unzip
######
@ -16,7 +16,8 @@ apt-get -y --no-install-recommends install ca-certificates ntp openssl sudo unzi
# Install OpenSSH server
apt-get -y --no-install-recommends install openssh-server
# Copy authorized_keys
# Copy profile files
cp ${SOURCE_DIR}/basic/root/.bashrc /root/.bashrc
cp ${SOURCE_DIR}/basic/root/.ssh/authorized_keys /root/.ssh/authorized_keys

25
basic/root/.bashrc Normal file
View File

@ -0,0 +1,25 @@
shopt -s histappend
HISTSIZE=10000
HISTFILESIZE=20000
HISTTIMEFORMAT="(%F %T) "
PROMPT_COMMAND="history -a"
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\H:\w\a\]$PS1"
;;
*)
;;
esac
eval "`dircolors`"
COLOR="--color=auto"
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
alias ls='ls --color=auto'
alias ll='ls -la --color=auto'
alias l='ls -a --color=auto'
alias grep='grep --color=auto'