From a1358efe562a4e73ef23f25c606a346f684e1c93 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 6 Aug 2014 23:10:14 -0400 Subject: [PATCH] Add user-specific bash aliases --- stage1/create-config-files | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 -- 2.20.1