-
Notifications
You must be signed in to change notification settings - Fork 0
/
bwi.fish
43 lines (36 loc) · 1.34 KB
/
bwi.fish
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Defined in /Users/admin/.config/fish/functions/bwi.fish @ line 2
function bwi
echo -e "\n Fetching package(s) information from HomeBrew..."
for i in $argv
if test (string sub -s 1 -l 2 $i) = 'c/'
set caskitem (string sub -s 3 $i)
# set_color black -b brwhite
echo -e '\n\n\n\t- Cask Package: `'"$i"'` - \n'
set_color normal
spin "brew info $caskitem"
set_color yellow
echo -e '___________________________________________________________'
set_color normal
else
# echo -e '\n\n'
# set_color black -b brwhite
echo -e '\t\t- Package: `'"$i"'` -\t\t\t\t'
true
#isatty stdout
# if test $status -eq 1
# echo $status
# echo -e 'yes equal to one'
# else
# echo $status
# echo -e 'not equal to one'
# end
set_color normal
echo -e '\n\n'
spin "brew info $i"
set_color yellow
echo -e '___________________________________________________________'
set_color normal
echo -e '\n'
end
end
end