From: Hugo Villeneuve Date: Thu, 7 Aug 2014 03:10:14 +0000 (-0400) Subject: Add user-specific bash aliases X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=a1358efe562a4e73ef23f25c606a346f684e1c93;p=hvlinux.git Add user-specific bash aliases --- diff --git a/stage1/create-config-files b/stage1/create-config-files index a4381db..00a5894 100755 --- a/stage1/create-config-files +++ b/stage1/create-config-files @@ -192,7 +192,7 @@ EOF cat > ${LFS}/etc/skel/.bashrc << "EOF" # ~/.bashrc -# User specific aliases and functions +# User bashrc # This file is executed each time an xterm window # is started. @@ -201,6 +201,23 @@ if [ -f /etc/bashrc ]; then . /etc/bashrc fi +# Source user aliases +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +EOF + +cat > ${LFS}/etc/skel/.bash_aliases << "EOF" +# ~/.bash_aliases + +# User specific aliases + +# GIT aliases +alias gra='git rebase --abort' +alias grc='git rebase --continue' +alias gri='git rebase -i' + EOF # Copy skeleton files to root user directory