summary refs log tree commit diff stats
path: root/uml
Commit message (Expand)AuthorAgeFilesLines
* tons of stuffhut2009-12-171-3/+3
* updated umlhut2009-12-153-4/+8
* updated UML projecthut2009-12-1214-0/+2176
c2800f55ea2064f18c1b5bc4e9523'>c139ec86 ^
796074b5 ^





d04d0578 ^

796074b5 ^

864e372c ^
796074b5 ^









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
                                            
 





                                                                              

                                                                             

                    
                                      









                                                              
# Compatible with ranger 1.4.2 through 1.7.*
#
# Automatically change the directory in bash after closing ranger
#
# This is a bash function for .bashrc to automatically change the directory to
# the last visited one after ranger quits.
# To undo the effect of this function, you can type "cd -" to return to the
# original directory.
# 
# On OS X 10 or later, replace `usr/bin/ranger` with `/usr/local/bin/ranger`.

function ranger-cd {
    tempfile="$(mktemp -t tmp.XXXXXX)"
    /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
    test -f "$tempfile" &&
    if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
        cd -- "$(cat "$tempfile")"
    fi
    rm -f -- "$tempfile"
}

# This binds Ctrl-O to ranger-cd:
bind '"\C-o":"ranger-cd\C-m"'