From 9843a5d94c94449f0744bc23f8333e949009a968 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 29 Jun 2017 11:38:48 +0200 Subject: [PATCH] Add .bashrc --- basic.sh | 5 +++-- basic/root/.bashrc | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 basic/root/.bashrc diff --git a/basic.sh b/basic.sh index 1b11fd3..85404cf 100644 --- a/basic.sh +++ b/basic.sh @@ -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 diff --git a/basic/root/.bashrc b/basic/root/.bashrc new file mode 100644 index 0000000..f572b7d --- /dev/null +++ b/basic/root/.bashrc @@ -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'