Permalink
Browse files

Changes to bash-functions

  • Loading branch information...
1 parent 76babc1 commit f7305d2e0446869774ed98650f85c7134dda3848 Frank Luithle committed Feb 11, 2012
Showing with 13 additions and 2 deletions.
  1. +13 −2 bin/bash-functions.sh
View
@@ -14,15 +14,26 @@ function lock ()
function vgaoff ()
{
- xrandr --output VGA-0 --off
+ xrandr --output DFP1 --off
}
function vgaon ()
{
- xrandr --output VGA-0 --right-of LVDS --auto
+ xrandr --output DFP1 --right-of LVDS --auto
}
function pmsusp ()
{
gnome-power-cmd suspend 2&>/dev/null
}
+
+function rvm_prompt ()
+{
+ if [ -n "$rvm_bin_path" ]; then
+ rvm_prompt_output=`$rvm_bin_path/rvm-prompt i v p g`
+ if [ -n "$rvm_prompt_output" ]; then
+ printf "[%s] " $rvm_prompt_output
+ fi
+ fi
+}
+

0 comments on commit f7305d2

Please sign in to comment.