Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

wip: port c2prompt from perl to ruby

  • Loading branch information...
commit b1179ef29ab88824bb71f9c7243ae2fa5f984c46 1 parent 415ac9b
dirk luesebrink authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  packages/pathfix.sh
  2. +1 −2  packages/prompt.sh
  3. +1 −0  rc-packages.sh
View
2  packages/pathfix.sh
@@ -1,5 +1,5 @@
function pathfix {
- script=${RC_PACKAGES}/../scripts/pathfix.rb
+ script=${RC_SCRIPT_DIR}/pathfix.rb
new_path=$(${script} $*)
if [ "$?" == 0 ]; then
PATH=${new_path}
View
3  packages/prompt.sh
@@ -29,7 +29,7 @@ function cd() {
builtin cd "${1:-${HOME}}"
#echo --$1--
- w=$(~/rc/c2prompt.pl)
+ w=$(${RC_SCRIPT_DIR}/c2prompt.rb)
#echo --$w--
#PS1="\e[39m\u\e[m \e[32m\h\e[0m\] ${w}: "
#PS1="\[\e[1;31;44m\] \u \[\e[0m\] @ \[\e[32m\h\[\e[0m\] ${w}: "
@@ -37,4 +37,3 @@ function cd() {
#PS1="\[\e[39m\]\u\[\e[0m\]@\[\e[32m\h\[\e[0m\] ${w}: "
PS2=" >> "
}
-
View
1  rc-packages.sh
@@ -10,6 +10,7 @@ fi
# define base dir for packages and further source commands
RC_PACKAGES_DIR=$(dirname ${BASH_SOURCE})/packages
+RC_SCRIPT_DIR=$(dirname ${BASH_SOURCE})/scripts
# debug echo function
function decho() {
Please sign in to comment.
Something went wrong with that request. Please try again.