From 11c2a60b3a8709993ef08b847eaacf7c255db971 Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Sun, 10 Apr 2022 19:53:04 -0400 Subject: fish: use return instead of exit --- dot_config/private_fish/plug/antlr.fish | 2 +- dot_config/private_fish/plug/bat.fish | 2 +- dot_config/private_fish/plug/bsdtar.fish | 2 +- dot_config/private_fish/plug/colordiff.fish | 2 +- dot_config/private_fish/plug/date.fish | 2 +- dot_config/private_fish/plug/dropbear.fish | 2 +- dot_config/private_fish/plug/exa.fish | 2 +- dot_config/private_fish/plug/ht.fish | 2 +- dot_config/private_fish/plug/iproute2.fish | 2 +- dot_config/private_fish/plug/jump.fish | 2 +- dot_config/private_fish/plug/luarocks.fish | 2 +- dot_config/private_fish/plug/rg.fish | 2 +- dot_config/private_fish/plug/skim.fish | 2 +- dot_config/private_fish/plug/ssh.fish | 2 +- dot_config/private_fish/plug/ugrep.fish | 4 ++-- dot_config/private_fish/plug/xh.fish | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) (limited to 'dot_config') diff --git a/dot_config/private_fish/plug/antlr.fish b/dot_config/private_fish/plug/antlr.fish index 77bf43f..d0ad4ef 100644 --- a/dot_config/private_fish/plug/antlr.fish +++ b/dot_config/private_fish/plug/antlr.fish @@ -1,3 +1,3 @@ -string match -q '*antlr*' $CLASSPATH || exit +string match -q '*antlr*' $CLASSPATH || return alias antlr4 "java -Xmx500M org.antlr.v4.Tool" alias grun "java -Xmx500M org.antlr.v4.gui.TestRig" diff --git a/dot_config/private_fish/plug/bat.fish b/dot_config/private_fish/plug/bat.fish index 8858351..2fcbc43 100644 --- a/dot_config/private_fish/plug/bat.fish +++ b/dot_config/private_fish/plug/bat.fish @@ -1,3 +1,3 @@ -type -qf bat || exit +type -qf bat || return alias cat bat alias c 'bat -pp' diff --git a/dot_config/private_fish/plug/bsdtar.fish b/dot_config/private_fish/plug/bsdtar.fish index dab2d53..0b72415 100644 --- a/dot_config/private_fish/plug/bsdtar.fish +++ b/dot_config/private_fish/plug/bsdtar.fish @@ -1,4 +1,4 @@ -type -qf bsdtar || exit +type -qf bsdtar || return alias tar bsdtar alias bshar 'bsdtar --format=shardump' alias shar 'bsdtar --format=shar' diff --git a/dot_config/private_fish/plug/colordiff.fish b/dot_config/private_fish/plug/colordiff.fish index 752882f..e782b2c 100644 --- a/dot_config/private_fish/plug/colordiff.fish +++ b/dot_config/private_fish/plug/colordiff.fish @@ -1,3 +1,3 @@ -type -q colordiff || exit +type -q colordiff || return alias diff colordiff alias dif 'colordiff -u' diff --git a/dot_config/private_fish/plug/date.fish b/dot_config/private_fish/plug/date.fish index 80c7c9e..27a0963 100644 --- a/dot_config/private_fish/plug/date.fish +++ b/dot_config/private_fish/plug/date.fish @@ -1,3 +1,3 @@ -type -qf date || exit +type -qf date || return # various date aliases I like alias weekdate "date '+%W %a'" diff --git a/dot_config/private_fish/plug/dropbear.fish b/dot_config/private_fish/plug/dropbear.fish index 8e8563b..86cdb0d 100644 --- a/dot_config/private_fish/plug/dropbear.fish +++ b/dot_config/private_fish/plug/dropbear.fish @@ -1,3 +1,3 @@ -type -qf dbclient || exit +type -qf dbclient || return alias dsh dbclient alias odsh 'dsh -yy' diff --git a/dot_config/private_fish/plug/exa.fish b/dot_config/private_fish/plug/exa.fish index aa7ffff..81a1490 100644 --- a/dot_config/private_fish/plug/exa.fish +++ b/dot_config/private_fish/plug/exa.fish @@ -1,4 +1,4 @@ -type -qf exa || exit +type -qf exa || return alias ls exa alias l 'exa -l' alias ll 'exa -l' diff --git a/dot_config/private_fish/plug/ht.fish b/dot_config/private_fish/plug/ht.fish index e216988..b71c371 100644 --- a/dot_config/private_fish/plug/ht.fish +++ b/dot_config/private_fish/plug/ht.fish @@ -1,3 +1,3 @@ -type -qf ht || exit +type -qf ht || return alias ht 'ht -F' alias h 'ht -b' diff --git a/dot_config/private_fish/plug/iproute2.fish b/dot_config/private_fish/plug/iproute2.fish index d0fcd2c..6344f70 100644 --- a/dot_config/private_fish/plug/iproute2.fish +++ b/dot_config/private_fish/plug/iproute2.fish @@ -1,2 +1,2 @@ -type -qf ip || exit +type -qf ip || return alias ip 'ip -c=auto' diff --git a/dot_config/private_fish/plug/jump.fish b/dot_config/private_fish/plug/jump.fish index c5b1565..e11c8ac 100644 --- a/dot_config/private_fish/plug/jump.fish +++ b/dot_config/private_fish/plug/jump.fish @@ -1,2 +1,2 @@ -type -qf jump || exit +type -qf jump || return jump shell fish | source diff --git a/dot_config/private_fish/plug/luarocks.fish b/dot_config/private_fish/plug/luarocks.fish index 7057f1d..2e67a12 100644 --- a/dot_config/private_fish/plug/luarocks.fish +++ b/dot_config/private_fish/plug/luarocks.fish @@ -1,3 +1,3 @@ -type -qf luarocks || exit +type -qf luarocks || return set -x LUA_CPATH (luarocks path --lr-cpath) set -x LUA_PATH (luarocks path --lr-path)";./?.lua" diff --git a/dot_config/private_fish/plug/rg.fish b/dot_config/private_fish/plug/rg.fish index 1cbb866..f445c62 100644 --- a/dot_config/private_fish/plug/rg.fish +++ b/dot_config/private_fish/plug/rg.fish @@ -1,4 +1,4 @@ -type -qf rg || exit +type -qf rg || return if test -f ~/.config/ripgrep.conf set -gx RIPGREP_CONFIG_PATH ~/.config/ripgrep.conf end diff --git a/dot_config/private_fish/plug/skim.fish b/dot_config/private_fish/plug/skim.fish index 76a394e..f8f245c 100644 --- a/dot_config/private_fish/plug/skim.fish +++ b/dot_config/private_fish/plug/skim.fish @@ -1,2 +1,2 @@ -type -qf sk || exit +type -qf sk || return set -gx SKIM_DEFAULT_COMMAND 'fd --type f || rg --files || find .' diff --git a/dot_config/private_fish/plug/ssh.fish b/dot_config/private_fish/plug/ssh.fish index 1a71332..375645f 100644 --- a/dot_config/private_fish/plug/ssh.fish +++ b/dot_config/private_fish/plug/ssh.fish @@ -1,2 +1,2 @@ -type -qf ssh || exit +type -qf ssh || return alias ossh 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=Error' diff --git a/dot_config/private_fish/plug/ugrep.fish b/dot_config/private_fish/plug/ugrep.fish index 2a2b8b3..6a396c4 100644 --- a/dot_config/private_fish/plug/ugrep.fish +++ b/dot_config/private_fish/plug/ugrep.fish @@ -1,4 +1,4 @@ -type -qf ugrep || exit +type -qf ugrep || return alias grep 'ugrep -G' alias egrep 'ugrep -E' alias fgrep 'ugrep -F' @@ -11,7 +11,7 @@ alias zxgrep 'ugrep -zW' alias xdump 'ugrep -X ""' -type -qf ug || exit +type -qf ug || return alias uq 'ug -Q' alias ux 'ug -UX' alias uz 'ug -z' diff --git a/dot_config/private_fish/plug/xh.fish b/dot_config/private_fish/plug/xh.fish index ccb5395..f749fb4 100644 --- a/dot_config/private_fish/plug/xh.fish +++ b/dot_config/private_fish/plug/xh.fish @@ -1,3 +1,3 @@ -type -qf xh || exit +type -qf xh || return alias xh 'xh -F' alias x 'xh -b' -- cgit v1.2.3