diff options
| author | typebrook <typebrook@gmail.com> | 2019-12-23 13:21:10 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-12-23 13:21:10 +0800 |
| commit | b747017036f18b3dfc98f363233a53bba4b95143 (patch) | |
| tree | 4cb6f99a2fa86b659cee01c228c5b69625c86233 /alias | |
| parent | ae8137eb9d5e7323412d561a76f58b556f2dafa7 (diff) | |
update
Diffstat (limited to 'alias')
| -rw-r--r-- | alias | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -71,7 +71,7 @@ alias ce='crontab -e' | |||
| 71 | # ranger | 71 | # ranger |
| 72 | alias r='_ranger-cd' | 72 | alias r='_ranger-cd' |
| 73 | alias ranrc='vim ~/.config/ranger/rc.conf' | 73 | alias ranrc='vim ~/.config/ranger/rc.conf' |
| 74 | function ranger-cd() { | 74 | _ranger-cd() { |
| 75 | tempfile="$(mktemp -t tmp.XXXXXX)" | 75 | tempfile="$(mktemp -t tmp.XXXXXX)" |
| 76 | ranger --choosedir="$tempfile" "${@:-$(pwd)}" | 76 | ranger --choosedir="$tempfile" "${@:-$(pwd)}" |
| 77 | test -f "$tempfile" && | 77 | test -f "$tempfile" && |
| @@ -245,3 +245,4 @@ alias cdand='cd ~/git/sample' | |||
| 245 | repo='git@github.com' | 245 | repo='git@github.com' |
| 246 | hub='https://github.com' | 246 | hub='https://github.com' |
| 247 | typebrook='git@github.com:typebrook' | 247 | typebrook='git@github.com:typebrook' |
| 248 | GITHUB_API='https://api.github.com' | ||