mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] what the hell did I commit and push?
This commit is contained in:
parent
93c9925a03
commit
1a9bbbd743
2 changed files with 5 additions and 1 deletions
|
@ -85,3 +85,7 @@ fi
|
||||||
alias sue="sudo --edit"
|
alias sue="sudo --edit"
|
||||||
|
|
||||||
alias rsync-backup='rsync --archive --compress --verbose --human-readable --partial --progress'
|
alias rsync-backup='rsync --archive --compress --verbose --human-readable --partial --progress'
|
||||||
|
|
||||||
|
if command_exists ncdu; then
|
||||||
|
alias ncdu='ncdu --confirm-quit'
|
||||||
|
fi
|
||||||
|
|
|
@ -11,7 +11,7 @@ viscd() {
|
||||||
local temp_file chosen_dir
|
local temp_file chosen_dir
|
||||||
temp_file="$(mktemp -t ranger_cd.XXXXXXXXXX)"
|
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
|
if chosen_dir="$(<"$temp_file")" && [[ -n "$chosen_dir" && "$chosen_dir" != "$PWD" ]]; then
|
||||||
cd -- "$chosen_dir"
|
cd -- "$chosen_dir"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue