
    l:i                     X    d dl mZ d dlmZmZ d Z edddd      d        Zed	        Zy
)    )shell)eagerfor_appc                 >   d| j                   v xs d| j                   v xs~ d| j                   v xsn d| j                   v xs^ d| j                   v xsN d| j                   v xs> d| j                   v xs. d| j                   v xs d	| j                   v xs d
| j                   v S )Nz.comz.eduz.infoz.ioz.lyz.mez.netz.orgz.sezwww.)scriptcommands    I/var/www/html/bot/venv/lib/python3.12/site-packages/thefuck/rules/open.py
is_arg_urlr      s    gnn$ 	%gnn$	%w~~%	% W^^#	% W^^#		%
 W^^#	% gnn$	% gnn$	% W^^#	% gnn$	&    openzxdg-openz
gnome-openzkde-openc                     t        |       xsT | j                  j                         j                  d      xr) | j                  j                         j	                  d      S )N	The file  does not exist.)r   outputstrip
startswithendswithr   s    r
   matchr      sS    w @NN  "--k: @NN  "++,>?Ar   c              #     K   | j                   j                         }t        |       r| j                  j	                  dd       y |j                  d      rk|j                  d      rY| j                  j                  dd      d   }dD ]4  }t        j                  dj                  ||      | j                         6 y y y w)	Nzopen zopen http://r   r       )touchmkdirz{} {})r   r   r   r   replacer   r   splitr   and_format)r	   r   argoptions       r
   get_new_commandr!       s     ^^!!#F'nn$$Wn==			;	'FOO<N,Onn""3*1-( 	KF**X__VS97>>JJ	K -P	's   CCN)thefuck.shellsr   thefuck.utilsr   r   r   r   r!    r   r
   <module>r%      sI    ! (
& 	\:6A 7A K Kr   