Skip to content

Commit

Permalink
Add the main code
Browse files Browse the repository at this point in the history
  • Loading branch information
xycabcd authored May 11, 2024
1 parent 669f425 commit 5ded095
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/zsh
while true
do
echo "\e[32m-----------------"
echo "'lsfile' File Lookup"
echo "$(pwd) \e[0m"
ls -AGF
echo -n ":"
read operation
if [[ ${operation} = //* ]];then
if [ ${operation} = "//q" ];then
echo "\e[32mRun 'cd $(pwd)' to go to the dir you just go to.\e[0m"
break
fi
if [[ ${operation} = //finder* ]];then
open -R "./${operation:9}"
else
echo "\e[32mCommand not support:'${operation:2}'\e[0m"
fi
else
cd $operation
fi
echo
done

0 comments on commit 5ded095

Please sign in to comment.