diff options
| author | typebrook <typebrook@gmail.com> | 2019-03-26 11:33:56 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-03-26 11:33:56 +0800 |
| commit | 1059e1441e0f12506690d2e2b4b33c6700bced08 (patch) | |
| tree | e18761e09f2800b18d88ff16d7b745e09e2aabd9 /alias | |
| parent | a2c47b527b081022429b3592abadbed6c5b2c6b1 (diff) | |
update
Diffstat (limited to 'alias')
| -rw-r--r-- | alias | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -26,8 +26,8 @@ alias cdd='cd ~/Downloads' | |||
| 26 | alias cdg='cd ~/git' | 26 | alias cdg='cd ~/git' |
| 27 | alias cds='cd ~/git/settings' | 27 | alias cds='cd ~/git/settings' |
| 28 | 28 | ||
| 29 | alias r='ranger-cd' | 29 | alias r='_ranger-cd' |
| 30 | function ranger-cd { | 30 | function _ranger-cd { |
| 31 | tempfile="$(mktemp -t tmp.XXXXXX)" | 31 | tempfile="$(mktemp -t tmp.XXXXXX)" |
| 32 | ranger --choosedir="$tempfile" "${@:-$(pwd)}" | 32 | ranger --choosedir="$tempfile" "${@:-$(pwd)}" |
| 33 | test -f "$tempfile" && | 33 | test -f "$tempfile" && |