Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
refactor: rename read_pipe function to __smartcd::read_pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
CodesOfRishi committed Feb 26, 2022
1 parent 1b6ec9e commit d953938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion feats/piping.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Feature: Piping

read_pipe() {
__smartcd::read_pipe() {
while read -r _line; do
printf '%s\n' "${_line}"
done
Expand Down
2 changes: 1 addition & 1 deletion smartcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ __smartcd__() {
# ---------------------------------------------------------------------------------------------------------------------

if [[ ! -t 0 ]]; then
local piped_value && piped_value=$( read_pipe | fzf --select-1 --exit-0 )
local piped_value && piped_value=$( __smartcd::read_pipe | fzf --select-1 --exit-0 )
if [[ -z ${piped_value} ]]; then
printf '%s\n' "Nothing piped to smartcd!"
return 1
Expand Down

0 comments on commit d953938

Please sign in to comment.