-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsave
More file actions
executable file
·44 lines (34 loc) · 1.41 KB
/
save
File metadata and controls
executable file
·44 lines (34 loc) · 1.41 KB
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
44
#!/usr/bin/env fish
cd "$HOME"
if is-mac
echo 'Updating .Brewfile'
brew bundle dump --force --global --taps --brews --casks
else
if test ! -e default-package.list
echo 'Downloading Manifest'
set ver (lsb_release --short --description | awk '{print $2}')
curl http://mirror.internode.on.net/pub/ubuntu/releases/$ver/ubuntu-$ver-desktop-amd64.manifest | cut -f1 | sort >default-package.list
end
echo 'Updating package.list'
apt-mark showmanual | sort | comm -23 - default-package.list >package.list
#TODO save snap apps
end
echo 'Updating .default-npm-packages'
npm list --global --depth=0 --parseable 2>/dev/null |
ag --only-matching '(?<=\/node_modules\/)(?!npm).+$' >.default-npm-packages
echo 'Updating .asdf-plugins'
asdf plugin list --urls >.asdf-plugins
echo 'Updating Dartfile'
dart pub global list | cut -d ' ' -f1 >Dartfile
echo 'Updating .default-python-packages'
pip list --not-required --format=freeze >.default-python-packages
echo 'Updating Pipxfile'
pipx list --short | awk {'print $1'} >Pipxfile
#FIME save Luarocks packages
echo 'Updating Cragofile'
cargo install --list | awk '/^[[:alnum:]]/ {print $1 " " $3}' >Cargofile
echo 'Updating uvfile'
# install tools: cat uvfile | xargs -I {} uv tool install {}
uv tool list | awk '/^[[:alnum:]]/ {print $1}' >uvfile
echo 'Updating Ollamafile'
ollama list | awk -F ':' '{print $1}' | tail -n +2 | sort | uniq >Ollamafile