Skip to content

Commit

Permalink
Merge pull request #33 from tamada/release/v2.0.0-beta-6
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada authored Dec 23, 2024
2 parents 7e210f6 + 883500e commit 9819907
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .bin/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ echo "$PREV_VERSION -> $VERSION (${PREV_VERSION//-/--} -> ${VERSION//-/--})"

sed -e "s#Version-${PREV_VERSION//-/--}-information#Version-${VERSION//-/--}-information#g" -e "s#tag/v${PREV_VERSION}#tag/v${VERSION}#g" README.md > a; mv a README.md
sed -e "s#version = \".*\"#version = \"${VERSION}\"#g" docs/config.toml > a ; mv a docs/config.toml
sed "s/^version= /version = "${VERSION}"/g" Cargo.toml > a && mv a Cargo.toml
sed "s/^version = \".*\"/version = \"${VERSION}\"/g" Cargo.toml > a && mv a Cargo.toml

echo "Replace version from \"${PREV_VERSION}\" to \"${VERSION}\""
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sibling"
version = "2.0.0-beta-1"
version = "2.0.0-beta-6"
description = "get next/previous sibling directory name."
repository = "https://github.com/tamada/sibling"
homepage = "https://tamada.github.io/sibling"
Expand Down
21 changes: 11 additions & 10 deletions assets/init/init.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ __change_directory_to_sibling() {
fi
step=1
if [[ $# -eq 2 ]]; then
step=$2
step=$2
fi
next=$(sibling --type $traversing_type --csv --step $step)
sibling_status=$?
result=$(echo $next | tr -s ',' ' ')
result=($(echo $next | tr -s ',' ' '))
if [[ $sibling_status -eq 0 ]] ; then
cd ${result[1]}
echo "$PWD (${result[3]}/${result[4]})"
cd "$(echo ${result[2]} | xargs)"
echo "$PWD (${result[4]}/${result[5]})"
else
echo "Done (${result[3]}/${result[4]})"
echo "Done (${result[4]}/${result[5]})"
cd ..
fi
return $sibling_status
Expand All @@ -37,14 +37,15 @@ __ls_sibling() {
fi
step=1
if [[ $# -eq 2 ]]; then
step=$2
step=$2
fi
next=$(sibling --absolute --type $traversing_type --csv --step $step)
sibling_status=$?
result=$(echo $next | tr -s ',' ' ')
result=($(echo $next | tr -s ',' ' '))
if [[ $sibling_status -eq 0 ]]; then
echo ${result[1]}
ls ${result[1]}
r=$(echo ${result[2]} | xargs)
echo "$r (${result[4]}/${result[5]})"
ls "$r"
else
echo "no more siblings"
fi
Expand All @@ -59,7 +60,7 @@ lsprev() {
}

lsrand() {
__ls_sibling rand
__ls_sibling random
}

lsfirst() {
Expand Down
2 changes: 1 addition & 1 deletion docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pygmentsStyle = "pygments"
project_tagline = "get next/previous sibling directory name"
dateFormat = "2006-01-02"
katex = true
version = "2.0.0-beta-5"
version = "2.0.0-beta-6"
footer = "[![GitHub](https://img.shields.io/badge/GitHub-tamada/sibling-blueviolet.svg?logo=github)](https://github.com/tamada/sibling) Made with [Hugo](https://gohugo.io/). Theme by [Cayman](https://github.com/zwbetz-gh/cayman-hugo-theme). Deployed to [GitHub Pages](https://pages.github.com/)."

[menu]
Expand Down

0 comments on commit 9819907

Please sign in to comment.