diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index cdb76b3..4ba5a7d 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -3,6 +3,7 @@ fish_add_path ~/.local/bin fish_add_path ~/.go/bin fish_add_path ~/.npm/bin +fish_add_path ~/.yarn/bin fish_add_path ~/.local/share/gem/ruby/3.0.0/bin ## SSH init diff --git a/fish/.config/fish/fish_variables b/fish/.config/fish/fish_variables index db6287e..2a2f78c 100644 --- a/fish/.config/fish/fish_variables +++ b/fish/.config/fish/fish_variables @@ -35,6 +35,6 @@ SETUVAR fish_pager_color_description:B3A06D\x1eyellow SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan SETUVAR fish_pager_color_selected_background:\x2dr -SETUVAR fish_user_paths:/home/bca/\x2elocal/share/gem/ruby/3\x2e0\x2e0/bin\x1e/home/bca/\x2ego/bin\x1e/home/bca/\x2elocal/bin +SETUVAR fish_user_paths:/home/bca/\x2eyarn/bin\x1e/home/bca/\x2elocal/share/gem/ruby/3\x2e0\x2e0/bin\x1e/home/bca/\x2ego/bin\x1e/home/bca/\x2elocal/bin SETUVAR nvm_data:/home/bca/\x2elocal/share/nvm SETUVAR nvm_mirror:https\x3a//nodejs\x2eorg/dist diff --git a/fish/.config/fish/functions/p-xvid-list-tosee.fish b/fish/.config/fish/functions/p-xvid-list-tosee.fish new file mode 100644 index 0000000..2adf6dc --- /dev/null +++ b/fish/.config/fish/functions/p-xvid-list-tosee.fish @@ -0,0 +1,17 @@ +function p-xvid-list-tosee + set -l url https://www.xvideos.com/favorite/102382191/a_regarder_plus_tard + + set -l page 0 + set -l count 1 + + while test $count -gt 0 + echo -n "Getting page $page: " >&2 + set -l pagelinks (http "$url/$page" 2>/dev/null \ + | htmlq -a data-id "div.thumb-block" ) + + set count (count $pagelinks) + echo "$count links found" >&2 + echo -e (string join "\n" $pagelinks) | xargs printf "https://xvideos.com/video%s/hello\n" + set page (math $page + 1) + end +end