mirror of
https://github.com/junegunn/fzf
synced 2026-06-09 10:03:17 +00:00
make lint
This commit is contained in:
@@ -227,13 +227,13 @@ fi
|
|||||||
|
|
||||||
for s in $shells; do
|
for s in $shells; do
|
||||||
bin=$s
|
bin=$s
|
||||||
[[ "$s" = nushell ]] && bin=nu
|
[[ $s == nushell ]] && bin=nu
|
||||||
if ! command -v "$bin" > /dev/null; then
|
if ! command -v "$bin" > /dev/null; then
|
||||||
shells=${shells/$s/}
|
shells=${shells/$s/}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -z "${shells// /}" ]]; then
|
if [[ -z ${shells// /} ]]; then
|
||||||
echo "No shell configuration to be updated."
|
echo "No shell configuration to be updated."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -442,7 +442,7 @@ if [[ $shells =~ fish ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$shells" =~ nushell ]]; then
|
if [[ $shells =~ nushell ]]; then
|
||||||
if [[ $key_bindings -eq 1 || $auto_completion -eq 1 ]]; then
|
if [[ $key_bindings -eq 1 || $auto_completion -eq 1 ]]; then
|
||||||
echo "Setting up Nushell integration ..."
|
echo "Setting up Nushell integration ..."
|
||||||
nushell_autoload_dir=$(nu -c '$nu.user-autoload-dirs | first')
|
nushell_autoload_dir=$(nu -c '$nu.user-autoload-dirs | first')
|
||||||
|
|||||||
+2
-1
@@ -136,6 +136,7 @@ class Tmux
|
|||||||
rescue Minitest::Assertion
|
rescue Minitest::Assertion
|
||||||
retries += 1
|
retries += 1
|
||||||
raise if retries > 5
|
raise if retries > 5
|
||||||
|
|
||||||
retry
|
retry
|
||||||
end
|
end
|
||||||
send_keys 'clear', :Enter
|
send_keys 'clear', :Enter
|
||||||
@@ -295,7 +296,7 @@ class Tmux
|
|||||||
if @shell == :nushell
|
if @shell == :nushell
|
||||||
message = "Prepare[#{tries}]"
|
message = "Prepare[#{tries}]"
|
||||||
send_keys 'C-u', 'C-l'
|
send_keys 'C-u', 'C-l'
|
||||||
sleep 0.2
|
sleep(0.2)
|
||||||
send_keys ' ', 'C-u', :Enter, message
|
send_keys ' ', 'C-u', :Enter, message
|
||||||
self.until { |lines| lines[-1] == message }
|
self.until { |lines| lines[-1] == message }
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user