1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-16 23:37:55 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
dependabot[bot]
9bfa3395f3
chore(deps): bump charset-normalizer in /.github/workflows/dependencies (#12749)
Bumps [charset-normalizer](https://github.com/Ousret/charset_normalizer) from 3.3.2 to 3.4.0.
- [Release notes](https://github.com/Ousret/charset_normalizer/releases)
- [Changelog](https://github.com/jawah/charset_normalizer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Ousret/charset_normalizer/compare/3.3.2...3.4.0)

---
updated-dependencies:
- dependency-name: charset-normalizer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-13 21:11:03 +02:00
ohmyzsh[bot]
a82f6c79ab
feat(wd): update to f0f47b71 (#12747)
Co-authored-by: ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com>
2024-10-13 21:10:29 +02:00
3 changed files with 9 additions and 8 deletions

View File

@ -28,7 +28,7 @@ dependencies:
plugins/wd: plugins/wd:
repo: mfaerevaag/wd repo: mfaerevaag/wd
branch: master branch: master
version: tag:v0.9.0 version: tag:v0.9.1
precopy: | precopy: |
set -e set -e
rm -r test rm -r test

View File

@ -1,5 +1,5 @@
certifi==2024.8.30 certifi==2024.8.30
charset-normalizer==3.3.2 charset-normalizer==3.4.0
idna==3.10 idna==3.10
PyYAML==6.0.2 PyYAML==6.0.2
requests==2.32.3 requests==2.32.3

View File

@ -8,7 +8,7 @@
# @github.com/mfaerevaag/wd # @github.com/mfaerevaag/wd
# version # version
readonly WD_VERSION=0.9.0 readonly WD_VERSION=0.9.1
# colors # colors
readonly WD_BLUE="\033[96m" readonly WD_BLUE="\033[96m"
@ -59,7 +59,7 @@ wd_print_msg()
then then
local color="${1:-$WD_BLUE}" # Default to blue if no color is provided local color="${1:-$WD_BLUE}" # Default to blue if no color is provided
local msg="$2" local msg="$2"
if [[ -z "$msg" ]]; then if [[ -z "$msg" ]]; then
print "${WD_RED}*${WD_NOC} Could not print message. Sorry!" print "${WD_RED}*${WD_NOC} Could not print message. Sorry!"
else else
@ -344,6 +344,7 @@ wd_path()
wd_show() wd_show()
{ {
local name_arg=$1 local name_arg=$1
local show_pwd
# if there's an argument we look up the value # if there's an argument we look up the value
if [[ -n $name_arg ]] if [[ -n $name_arg ]]
then then
@ -358,12 +359,12 @@ wd_show()
local wd_matches local wd_matches
wd_matches=() wd_matches=()
# do a reverse lookup to check whether PWD is in $points # do a reverse lookup to check whether PWD is in $points
PWD="${PWD/$HOME/~}" show_pwd="${PWD/$HOME/~}"
if [[ ${points[(r)$PWD]} == "$PWD" ]] if [[ ${points[(r)$show_pwd]} == "$show_pwd" ]]
then then
for name in ${(k)points} for name in ${(k)points}
do do
if [[ $points[$name] == "$PWD" ]] if [[ $points[$name] == "$show_pwd" ]]
then then
wd_matches[$(($#wd_matches+1))]=$name wd_matches[$(($#wd_matches+1))]=$name
fi fi
@ -371,7 +372,7 @@ wd_show()
wd_print_msg "$WD_BLUE" "$#wd_matches warp point(s) to current directory: ${WD_GREEN}$wd_matches${WD_NOC}" wd_print_msg "$WD_BLUE" "$#wd_matches warp point(s) to current directory: ${WD_GREEN}$wd_matches${WD_NOC}"
else else
wd_print_msg "$WD_YELLOW" "No warp point to $(echo "$PWD" | sed "s:$HOME:~:")" wd_print_msg "$WD_YELLOW" "No warp point to $show_pwd"
fi fi
fi fi
} }