From 7b9a5f09411e901518e68e269f79b61cffd5ca73 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 13 Jul 2016 12:27:39 +0200 Subject: [PATCH] fixed current working directory --- post-install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/post-install.sh b/post-install.sh index 5081eb8..85801f3 100755 --- a/post-install.sh +++ b/post-install.sh @@ -56,7 +56,7 @@ print_warning() { print_title 'Arch Linux Postinstall' -_cwd="$(pwd)" + alpi_user(){ print_title "User" @@ -88,7 +88,7 @@ alpi_avahi(){ print_msg "configure avahi" sudo systemctl enable avahi-daemon sudo systemctl start avahi-deamon - sed -i.back 's/hosts: files dns myhostname/hosts: files mdns_minimal [NOTFOUND=return] dns myhostname/' /etc/nsswitch.conf + sudo sed -i.back 's/hosts: files dns myhostname/hosts: files mdns_minimal [NOTFOUND=return] dns myhostname/' /etc/nsswitch.conf } alpi_basics(){ @@ -112,6 +112,7 @@ alpi_basics(){ alpi_cosmetics(){ print_title "apply pacman, bash, vim and git config (needs basic pkgs install)" alpi_basics + _cwd="$(pwd)" # vim print_msg 'vim configuration' sudo pacman -S --needed --noconfirm -q vim-{spell-fr,spell-en,nerdtree,supertab,systemd} @@ -139,9 +140,9 @@ alpi_cosmetics(){ echo 'set show-all-if-ambiguous on' >> /home/$USER/.inputrc echo 'set completion-ignore-case on' >> /home/$USER/.inputrc - print_msg 'ILoveCandy (pacman)' - sudo sed -i.back 's/.*\[options\].*/&\nILoveCandy/' /etc/pacman.conf + print_msg "ILoveCandy (pacman)" sudo sed -i.back 's/^#Color$/Color/' /etc/pacman.conf + sudo sed -i.back 's/.*\[options\].*/&\nILoveCandy/' /etc/pacman.conf print_msg 'Config and Cosmetics done' } @@ -301,6 +302,7 @@ alpi_defaultpkgs(){ read yn yn=${yn:-y} if [ "$yn" == "y" ]; then + _cwd="$(pwd)" print_msg "file explorer : Dolphin" sudo pacman -S --needed --noconfirm -q dolphin dolphin-plugins print_msg 'Pim softwares : mail, calendar, contact, etc'