[zsh] what the hell did I commit and push?

This commit is contained in:
Dmytro Meleshko 2020-10-21 14:27:42 +03:00
parent 93c9925a03
commit 1a9bbbd743
2 changed files with 5 additions and 1 deletions

View file

@ -85,3 +85,7 @@ fi
alias sue="sudo --edit"
alias rsync-backup='rsync --archive --compress --verbose --human-readable --partial --progress'
if command_exists ncdu; then
alias ncdu='ncdu --confirm-quit'
fi

View file

@ -11,7 +11,7 @@ viscd() {
local temp_file chosen_dir
temp_file="$(mktemp -t ranger_cd.XXXXXXXXXX)"
{
ranger --no-such-opt --choosedir="$temp_file" -- "${@:-$PWD}"
ranger --choosedir="$temp_file" -- "${@:-$PWD}"
if chosen_dir="$(<"$temp_file")" && [[ -n "$chosen_dir" && "$chosen_dir" != "$PWD" ]]; then
cd -- "$chosen_dir"
fi