Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Modify .bashrc to load .bashrc.aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Dec 6, 2017
1 parent 1f898c6 commit 3a7ae57
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
10 changes: 5 additions & 5 deletions scripts/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ enlightenment_settings() {

set_dmrc enlightenment

echo "QT_STYLE_OVERRIDE=gtk" >> ${CN_DESTDIR}/etc/environment

# Add lxpolkit to autostart apps
cp /etc/xdg/autostart/lxpolkit.desktop ${CN_DESTDIR}/home/${CN_USER_NAME}/.config/autostart
}
Expand Down Expand Up @@ -338,16 +336,18 @@ postinstall() {
env_files=("${CN_DESTDIR}/etc/environment"
"${CN_DESTDIR}/home/${CN_USER_NAME}/.bashrc"
"${CN_DESTDIR}/etc/skel/.bashrc"
"${CN_DESTDIR}/etc/profile")
"${CN_DESTDIR}/etc/profile")

for file in "${env_files[@]}"
do
echo "# >>> BEGIN ADDED BY CNCHI INSTALLER" >> "${file}"
echo "# >>> Added by cnchi installer" >> "${file}"
if [ "${CN_BROWSER}" != "" ]; then
echo "BROWSER=/usr/bin/${CN_BROWSER}" >> "${file}"
fi
echo "EDITOR=/usr/bin/nano" >> "${file}"
echo "# <<< END ADDED BY CNCHI INSTALLER" >> "${file}"
# This is inside .bashrc.aliases from the antergos-desktop-settings package
#echo "export QT_STYLE_OVERRIDE=gtk" >> "${file}"
#echo "export QT_SELECT=qt5" >> "${file}"
done

# Configure makepkg so that it doesn't compress packages after building.
Expand Down
2 changes: 1 addition & 1 deletion src/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

""" Set some Cnchi global constants """

CNCHI_VERSION = "0.14.408"
CNCHI_VERSION = "0.14.409"
CNCHI_WEBSITE = "http://www.antergos.com"
CNCHI_RELEASE_STAGE = "production"

Expand Down
11 changes: 11 additions & 0 deletions src/installation/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,3 +1528,14 @@ def configure_system(self):
nanorc.write('set keycolor cyan\n')
nanorc.write('set functioncolor green\n')
nanorc.write('include "/usr/share/nano/*.nanorc"\n')

# Set .bashrc (in skel and user) to load .bashrc.aliases
bashrc_files = ["/etc/skel/.bashrc"]
bashrc_files.append("/home/{}/.bashrc".format(username))
for bashrc_file in bashrc_files:
if os.path.exists(bashrc_file):
with open(bashrc_file, 'a') as bashrc:
bashrc.write('\n')
bashrc.write('if [ -e ~/.bashrc.aliases ] ; then\n')
bashrc.write(' source ~/.bashrc.aliases\n')
bashrc.write('fi\n')

0 comments on commit 3a7ae57

Please sign in to comment.