Skip to content

Commit 709ec24

Browse files
author
Jakub Dupak
committed
Added more variants to invoke operation and option to remove orphaned packages
1 parent f3b61a0 commit 709ec24

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

README.md

100644100755
+18
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,19 @@ List all packages and install selected. If parameter is supplied, it is given to
1212

1313
```yup -i [package_name...]```
1414

15+
#### Alternative flags
16+
- `--install`
17+
- `i`
18+
- `install`
1519
### Remove
1620

1721
Works same way as install but for installed packages.
1822

23+
- `-r`
24+
- `--remove`
25+
- `r`
26+
- `remove`
27+
1928
```yup -r [package_name...]```
2029

2130
### Details about package
@@ -34,6 +43,15 @@ Idea behind this is that every program which has some kind of update not managed
3443

3544
```yup -u```
3645

46+
- `--update`
47+
- `u`
48+
- `update`
49+
50+
### Remove orphaned packages
51+
- `-o`
52+
- `--orphaned`
53+
- `o`
54+
- `orphaned`
3755
## Dependencies
3856

3957
- [yay](https://github.com/Jguer/yay)

main.fish

100644100755
+6-5
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
function yup -a flag -d "Yay UPgraded - with fuzzy search"
44
set query $argv[2..-1]
55
switch $flag
6-
case -i # Install
6+
case -i --install i install
77
set RES (yay -Slq | fzf -q "$query" -m --preview 'yay -Si {1}') &&
88
yay -S $RES
9-
case -r # Remove
9+
case -r --remove r remove
1010
set RES (yay -Qq | fzf -q "$query" -m --preview 'yay -Qil {}') &&
1111
yay -Rns $RES
12-
case -d # Detail
12+
case -d --detail d detail
1313
yay -Qq | fzf -q "$query" --preview 'yay -Qil {}' --bind 'enter:execute(yay -Qil {} | less)'
14-
case -u # Update system
14+
case -u --update u update # Update system
1515
echof "--bold" "Starting system upgrade..."
16-
#yay -Syu ## moved to updators
1716

1817
set conf_dir $XDG_CONFIG_HOME && [ -z "$conf_dir" ] && set conf_dir ~/.config
1918
[ -f $conf_dir/updators.sh ] || echof "--bold red" "No file updators.sh found." && exit 1
@@ -56,6 +55,8 @@ function yup -a flag -d "Yay UPgraded - with fuzzy search"
5655
else
5756
echof "--bold" "[DONE] All tasks finished succesfully."
5857
end
58+
case -o --orphaned o orphaned
59+
yay -Rns (yay -Qtdq)
5960
case *
6061
echo "No operation supplied"
6162
end

0 commit comments

Comments
 (0)