aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-03-26 11:33:56 +0800
committertypebrook <typebrook@gmail.com>2019-03-26 11:33:56 +0800
commit1059e1441e0f12506690d2e2b4b33c6700bced08 (patch)
treee18761e09f2800b18d88ff16d7b745e09e2aabd9 /alias
parenta2c47b527b081022429b3592abadbed6c5b2c6b1 (diff)
update
Diffstat (limited to 'alias')
-rw-r--r--alias4
1 files changed, 2 insertions, 2 deletions
diff --git a/alias b/alias
index 2d5e385..d5736d2 100644
--- a/alias
+++ b/alias
@@ -26,8 +26,8 @@ alias cdd='cd ~/Downloads'
26alias cdg='cd ~/git' 26alias cdg='cd ~/git'
27alias cds='cd ~/git/settings' 27alias cds='cd ~/git/settings'
28 28
29alias r='ranger-cd' 29alias r='_ranger-cd'
30function ranger-cd { 30function _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" &&