From ce388caf0ceef6ce6bfa0fc624d413d49402a01a Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Sun, 2 Jul 2017 14:35:46 +0000 Subject: [PATCH] Change .bashrc in skel profile --- .../01-sys-tweaks/00-patches/01-bashrc.diff | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/stage1/01-sys-tweaks/00-patches/01-bashrc.diff b/stage1/01-sys-tweaks/00-patches/01-bashrc.diff index efa2104..9d0f5df 100644 --- a/stage1/01-sys-tweaks/00-patches/01-bashrc.diff +++ b/stage1/01-sys-tweaks/00-patches/01-bashrc.diff @@ -1,6 +1,6 @@ ---- a/rootfs/etc/skel/.bashrc -+++ b/rootfs/etc/skel/.bashrc -@@ -43,7 +43,7 @@ +--- stage1.orig/rootfs/etc/skel/.bashrc ++++ stage1/rootfs/etc/skel/.bashrc +@@ -43,7 +43,7 @@ esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt @@ -9,18 +9,14 @@ if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then -@@ -57,7 +57,7 @@ - fi - - if [ "$color_prompt" = yes ]; then -- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] ' - else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' - fi -@@ -79,9 +79,9 @@ - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' +@@ -76,20 +76,21 @@ esac + if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' +- #alias dir='dir --color=auto' +- #alias vdir='vdir --color=auto' ++ alias dir='dir --color=auto' ++ alias vdir='vdir --color=auto' - #alias grep='grep --color=auto' - #alias fgrep='fgrep --color=auto' @@ -31,3 +27,14 @@ fi # colored GCC warnings and errors + #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' + + # some more ls aliases +-#alias ll='ls -l' +-#alias la='ls -A' ++alias ll='ls -l' ++alias la='ls -A' ++alias lal='ls -Al' + #alias l='ls -CF' + + # Alias definitions.