]> gitweb.fluxo.info Git - metadot.git/commitdiff
Removing bashisms from profile scripts
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 01:46:43 +0000 (23:46 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 01:46:43 +0000 (23:46 -0200)
modules/profile/profile
modules/profile/xprofile

index f442602cf6956c7cad3ad7eb69993f85a4494a27..dbfbea8924937f4145406ce614b8865bef767ed5 100644 (file)
@@ -7,16 +7,16 @@ export LANG=pt_BR.UTF-8
 
 # Source functions and variables from other places
 if [ -e "$HOME/.aliases" ]; then
-  source $HOME/.aliases
+  . $HOME/.aliases
 fi
 
 # Funcoes ZZ
 if [ -e "/usr/bin/funcoeszz" ]; then
-  source /usr/bin/funcoeszz
+  . /usr/bin/funcoeszz
 fi
 
 # Set PATH
-export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:$HOME/apps/scripts
+export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:$HOME/.dotfiles:$HOME/apps/scripts
 
 # Editor variables, avoiding "Avoiding protocol specified" error
 export EDITOR="vim -X"
@@ -26,12 +26,12 @@ eval "`dircolors -b ~/.dircolorsrc`"
 
 # SSH Agent
 if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then
-  source $HOME/apps/scripts/ssh-agent-eval
+  $HOME/apps/scripts/ssh-agent-eval
 fi
 
 # GPG Agent
 if [ -e "$HOME/apps/scripts/gpg-agent-eval" ]; then
-  source $HOME/apps/scripts/gpg-agent-eval
+  $HOME/apps/scripts/gpg-agent-eval
 fi
 
 # Remove lost found folder if empty
@@ -41,5 +41,5 @@ fi
 
 # Custom configuration
 if [ -e "$HOME/.custom/profile" ]; then
-  source $HOME/.custom/profile
+  . $HOME/.custom/profile
 fi
index eeeaf27ca5311240a644c6e74a6404a667345bc7..744ae5dca7d4f2b455b9d59720c6d1cafdfc621e 100755 (executable)
@@ -43,3 +43,8 @@ done
 #     https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/932177
 unset GNOME_KEYRING_PID
 unset GNOME_KEYRING_CONTROL
+
+# Execute window manager
+if [ "`cut -d . -f 1 /etc/debian_version`" ]; then
+  awesome
+fi