feat(fish): add command
This commit is contained in:
parent
be395b67c4
commit
5fd7363916
3 changed files with 19 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
fish_add_path ~/.local/bin
|
fish_add_path ~/.local/bin
|
||||||
fish_add_path ~/.go/bin
|
fish_add_path ~/.go/bin
|
||||||
fish_add_path ~/.npm/bin
|
fish_add_path ~/.npm/bin
|
||||||
|
fish_add_path ~/.yarn/bin
|
||||||
fish_add_path ~/.local/share/gem/ruby/3.0.0/bin
|
fish_add_path ~/.local/share/gem/ruby/3.0.0/bin
|
||||||
|
|
||||||
## SSH init
|
## SSH init
|
||||||
|
|
|
@ -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_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||||
SETUVAR fish_pager_color_selected_background:\x2dr
|
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_data:/home/bca/\x2elocal/share/nvm
|
||||||
SETUVAR nvm_mirror:https\x3a//nodejs\x2eorg/dist
|
SETUVAR nvm_mirror:https\x3a//nodejs\x2eorg/dist
|
||||||
|
|
17
fish/.config/fish/functions/p-xvid-list-tosee.fish
Normal file
17
fish/.config/fish/functions/p-xvid-list-tosee.fish
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue