From 8bf069af2ff559d77eaec56be0843daee3b37bb5 Mon Sep 17 00:00:00 2001 From: Stefan Ravn van Overeem Date: Tue, 3 Nov 2015 07:48:01 +0100 Subject: [PATCH 1/3] Add aliases to .bashrc instead of .bash_profile. .bash_profile only runs at login shells, while .bashrc runs at every shell session --- p | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 p diff --git a/p b/p old mode 100644 new mode 100755 index 5fc322f..2f4c8b1 --- a/p +++ b/p @@ -1,7 +1,7 @@ curl -L https://raw.githubusercontent.com/twial/scripts/master/run > ~/.run chmod u+x ~/.run -echo "alias p='curl -L https://raw.githubusercontent.com/twial/scripts/master/p | sh'" > ~/.bash_profile -echo "alias r='~/.run'" >> ~/.bash_profile +echo "alias p='curl -L https://raw.githubusercontent.com/twial/scripts/master/p | sh'" > ~/.bashrc +echo "alias r='~/.run'" >> ~/.bashrc # check if the pacman database exists pacdb=/var/lib/pacman/db.lck From e91b9990125ead66e8af824e007e01e769339fce Mon Sep 17 00:00:00 2001 From: Stefan Ravn van Overeem Date: Tue, 3 Nov 2015 10:28:16 +0100 Subject: [PATCH 2/3] added /bin/bash to .bash_profile to get alias support in login shells --- p | 1 + 1 file changed, 1 insertion(+) diff --git a/p b/p index 2f4c8b1..9f6c1e4 100755 --- a/p +++ b/p @@ -2,6 +2,7 @@ curl -L https://raw.githubusercontent.com/twial/scripts/master/run > ~/.run chmod u+x ~/.run echo "alias p='curl -L https://raw.githubusercontent.com/twial/scripts/master/p | sh'" > ~/.bashrc echo "alias r='~/.run'" >> ~/.bashrc +echo "/bin/bash" >> ~/.bash_profile # check if the pacman database exists pacdb=/var/lib/pacman/db.lck From 2322f44f85bb7c83b702a5286522a36618f4e9cc Mon Sep 17 00:00:00 2001 From: Stefan Ravn van Overeem Date: Tue, 3 Nov 2015 10:32:05 +0100 Subject: [PATCH 3/3] single arrow instead of double --- p | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p b/p index 9f6c1e4..a0620ac 100755 --- a/p +++ b/p @@ -2,7 +2,7 @@ curl -L https://raw.githubusercontent.com/twial/scripts/master/run > ~/.run chmod u+x ~/.run echo "alias p='curl -L https://raw.githubusercontent.com/twial/scripts/master/p | sh'" > ~/.bashrc echo "alias r='~/.run'" >> ~/.bashrc -echo "/bin/bash" >> ~/.bash_profile +echo "/bin/bash" > ~/.bash_profile # check if the pacman database exists pacdb=/var/lib/pacman/db.lck