let's try a bash prompt w/ 2 lines; let's have some custom bindings
authorpatrick nsukami <ndkpatt@gmail.com>
Tue, 9 Dec 2014 22:52:43 +0000 (22:52 +0000)
committerpatrick nsukami <ndkpatt@gmail.com>
Tue, 9 Dec 2014 22:52:43 +0000 (22:52 +0000)
.bash_bind [new file with mode: 0644]
.bashrc

diff --git a/.bash_bind b/.bash_bind
new file mode 100644 (file)
index 0000000..94d0447
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+bind -x '"\C-t":top'
diff --git a/.bashrc b/.bashrc
index 9e9210a..34e6507 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -50,17 +50,17 @@ if [ "$color_prompt" = yes ]; then
     #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] $(vcprompt -f %b%a%m%u) > '
     if [ $USER='nsukami' ]; then
         #PS1='${debian_chroot:+($debian_chroot)}5@\[\033[31m\]\h\[\033[00m\]:\w \[\033[1;33m\]$(vcprompt -f %b%a%m%u)\[\033[0m\] > '
-        PS1='${debian_chroot:+($debian_chroot)}5@\[\033[31m\]k\[\033[00m\]:\w \[\033[1;33m\]$(vcprompt -f %b%a%m%u)\[\033[0m\] > '
+        PS1='${debian_chroot:+($debian_chroot)}5@\[\033[31m\]k\[\033[00m\]:\w \[\033[1;33m\]$(vcprompt -f %b%a%m%u)\[\033[0m\] \n > '
     else
-        PS1='${debian_chroot:+($debian_chroot)}\u@\[\033[31m\]\h\[\033[00m\]:\w \[\033[1;33m\]$(vcprompt -f %b%a%m%u)\[\033[0m\] > '
+        PS1='${debian_chroot:+($debian_chroot)}\u@\[\033[31m\]\h\[\033[00m\]:\w \[\033[1;33m\]$(vcprompt -f %b%a%m%u)\[\033[0m\] \n > '
     fi
 else
     #PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "[%s]") \$ '
     if [ $USER='nsukami']; then
         #PS1='${debian_chroot:+($debian_chroot)}5@\[\033[31m\]\h\[\033[00m\]:\w $(vcprompt -f %b%a%m%u) > '
-    PS1='${debian_chroot:+($debian_chroot)}5@\[\033[31m\]k\[\033[00m\]:\w $(vcprompt -f %b%a%m%u) > '
+    PS1='${debian_chroot:+($debian_chroot)}5@\[\033[31m\]k\[\033[00m\]:\w $(vcprompt -f %b%a%m%u) \n > '
     else
-        PS1='${debian_chroot:+($debian_chroot)}\u@\[\033[31m\]\h\[\033[00m\]:\w $(vcprompt -f %b%a%m%u) > '
+        PS1='${debian_chroot:+($debian_chroot)}\u@\[\033[31m\]\h\[\033[00m\]:\w $(vcprompt -f %b%a%m%u) \n > '
     fi
 
 fi
@@ -142,3 +142,7 @@ fi
 
 # memo
 [[ -f ~/.bash_memo ]] && . ~/.bash_memo
+
+# custom bindings
+
+[[ -f ~/.bash_bind ]] && . ~/.bash_bind