Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
8fa61126
Commit
8fa61126
authored
Mar 02, 2014
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #122 from skk/archlinux
parents
ede30d9f
eef0fb48
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
162 additions
and
0 deletions
+162
-0
plugins/archlinux/README.md
plugins/archlinux/README.md
+22
-0
plugins/archlinux/archlinux.load
plugins/archlinux/archlinux.load
+6
-0
plugins/archlinux/pacman/README.md
plugins/archlinux/pacman/README.md
+52
-0
plugins/archlinux/pacman/pacdisowned.fish
plugins/archlinux/pacman/pacdisowned.fish
+22
-0
plugins/archlinux/pacman/pacin.fish
plugins/archlinux/pacman/pacin.fish
+3
-0
plugins/archlinux/pacman/pacins.fish
plugins/archlinux/pacman/pacins.fish
+3
-0
plugins/archlinux/pacman/paclist.fish
plugins/archlinux/pacman/paclist.fish
+3
-0
plugins/archlinux/pacman/pacloc.fish
plugins/archlinux/pacman/pacloc.fish
+3
-0
plugins/archlinux/pacman/paclocs.fish
plugins/archlinux/pacman/paclocs.fish
+3
-0
plugins/archlinux/pacman/paclsorphans.fish
plugins/archlinux/pacman/paclsorphans.fish
+3
-0
plugins/archlinux/pacman/pacmanallkeys.fish
plugins/archlinux/pacman/pacmanallkeys.fish
+3
-0
plugins/archlinux/pacman/pacmansignkeys.fish
plugins/archlinux/pacman/pacmansignkeys.fish
+8
-0
plugins/archlinux/pacman/pacmir.fish
plugins/archlinux/pacman/pacmir.fish
+3
-0
plugins/archlinux/pacman/pacre.fish
plugins/archlinux/pacman/pacre.fish
+3
-0
plugins/archlinux/pacman/pacrem.fish
plugins/archlinux/pacman/pacrem.fish
+3
-0
plugins/archlinux/pacman/pacrep.fish
plugins/archlinux/pacman/pacrep.fish
+3
-0
plugins/archlinux/pacman/pacreps.fish
plugins/archlinux/pacman/pacreps.fish
+3
-0
plugins/archlinux/pacman/pacrmorphans.fish
plugins/archlinux/pacman/pacrmorphans.fish
+3
-0
plugins/archlinux/pacman/pacupd.fish
plugins/archlinux/pacman/pacupd.fish
+10
-0
plugins/archlinux/pacman/pacupg.fish
plugins/archlinux/pacman/pacupg.fish
+3
-0
No files found.
plugins/archlinux/README.md
0 → 100644
View file @
8fa61126
# The Arch Linux Plugins
The Arch Linux Plugins provides a number of plugins to make using arch easier.
# The Plugins
## archlinux
This plugin includes all of provided Arch Linux Plugins wrapped in a single plugin.
To use this plugin append the following
`archlinux`
to
`fish_plugins`
.
## archlinux/pacman
This plugin makes working with pacman easier and faster. Please refer to pacman/README.md for more information.
To use this plugin append the following
`archlinux/pacman`
to
`fish_plugins`
.
plugins/archlinux/archlinux.load
0 → 100644
View file @
8fa61126
set -l current_dir (dirname $argv)
# add pacman related functions
set fish_function_path $current_dir/pacman $fish_function_path
plugins/archlinux/pacman/README.md
0 → 100644
View file @
8fa61126
# pacman functions #
*
pacin
Install specific package(s) from the repositories
*
pacins
Install specific package not from the repositories but from a file
*
pacre
Remove the specified package(s), retaining its configuration(s) and required dependencies
*
pacrem
Remove the specified package(s), its configuration(s) and unneeded dependencies
*
pacrep
Display information about a given package in the repositories
*
pacreps
Search for package(s) in the repositories
*
pacloc
Display information about a given package in the local database
*
paclocs
Search for package(s) in the local database
*
pacupd
Update and refresh the local package and ABS databases against repositories
*
pacinsd
Install given package(s) as dependencies of another package
*
pacmir
Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
*
paclist
List all installed packages with a short description - Source
*
paclsorphans
List all orphaned packages
*
pacrmorphans
Delete all orphaned packages
*
pacdisowned | less +F
List all disowned files in your system
# Based on aliases from oh-my-zsh
Source: https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/archlinux/archlinux.plugin.zsh
plugins/archlinux/pacman/pacdisowned.fish
0 → 100644
View file @
8fa61126
function pacdisowned -d "Display list of disowned files"
if test -d "$TMPDIR"
set tmp $TMPDIR
else
set tmp "/tmp"
end
set dir (mktemp -d -p $tmp)
set -l fs "$dir/fs"
set -l db "$dir/db"
pacman -Qlq | sort -u > "$db"
find /bin /etc /lib /sbin /usr ! -name lost+found \
\( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
comm -23 "$fs" "$db"
# clean-up after ourself
rm -rf "$dir"
end
plugins/archlinux/pacman/pacin.fish
0 → 100644
View file @
8fa61126
function pacin -d "Install specific package(s) from the repositories"
sudo pacman -S $argv
end
plugins/archlinux/pacman/pacins.fish
0 → 100644
View file @
8fa61126
function pacins -d "Install specific package not from the repositories but from a file"
sudo pacman -U $argv
end
plugins/archlinux/pacman/paclist.fish
0 → 100644
View file @
8fa61126
function paclist
pacman -Qei (pacman -Qu|cut -d" " -f 1)|awk ' BEGIN {FS=":"}/^Name/{printf("\033[1;36m%s\033[1;37m", $2)}/^Description/{print $2}'
end
plugins/archlinux/pacman/pacloc.fish
0 → 100644
View file @
8fa61126
function pacloc -d "Display information about a given package in the local database"
pacman -Qi $argv
end
plugins/archlinux/pacman/paclocs.fish
0 → 100644
View file @
8fa61126
function paclocs -d "Search for package(s) in the local database"
pacman -Qs $argv
end
plugins/archlinux/pacman/paclsorphans.fish
0 → 100644
View file @
8fa61126
function paclsorphans -d "Display a list of packages that were installed as dependencies but are no longer required by any installed package"
pacman -Qdt $argv
end
plugins/archlinux/pacman/pacmanallkeys.fish
0 → 100644
View file @
8fa61126
function pacmanallkeys -d "Get all keys for developers and trusted users"
curl https://www.archlinux.org/developers/ https://www.archlinux.org/trustedusers/ | awk -F\" '(/pgp.mit.edu/) {sub(/.*search=0x/,"");print $1}' | xargs sudo pacman-key --recv-keys
end
plugins/archlinux/pacman/pacmansignkeys.fish
0 → 100644
View file @
8fa61126
function pacmansignkeys -d "Allow user to sign keys"
for key in $argv;
sudo pacman-key --recv-keys $key
sudo pacman-key --lsign-key $key
printf 'trust\n3\n' | sudo gpg --homedir /etc/pacman.d/gnupg \
--no-permission-warning --command-fd 0 --edit-key $key
end
end
plugins/archlinux/pacman/pacmir.fish
0 → 100644
View file @
8fa61126
function pacmir -d "Force refresh of all package lists after updating /etc/pacman.d/mirrorlist"
sudo pacman -Syy $argv
end
plugins/archlinux/pacman/pacre.fish
0 → 100644
View file @
8fa61126
function pacre -d "Remove the specified package(s), retaining its configuration(s) and required dependencies"
sudo pacman -R $argv
end
plugins/archlinux/pacman/pacrem.fish
0 → 100644
View file @
8fa61126
function pacrem -d "Remove the specified package(s), its configuration(s) and unneeded dependencies"
sudo pacman -Rns $argv
end
plugins/archlinux/pacman/pacrep.fish
0 → 100644
View file @
8fa61126
function pacrep -d "Display information about a given package in the repositories"
pacman -Si $argv
end
plugins/archlinux/pacman/pacreps.fish
0 → 100644
View file @
8fa61126
function pacreps -d "Search for package(s) in the repositories"
pacman -Ss $argv
end
plugins/archlinux/pacman/pacrmorphans.fish
0 → 100644
View file @
8fa61126
function pacrmorphans -d "Remove all real orphan packages"
sudo pacman -Rs (pacman -Qtdq) $argv
end
plugins/archlinux/pacman/pacupd.fish
0 → 100644
View file @
8fa61126
which abs ^ /dev/null > /dev/null
if test $status -ne 1
function pacupd -d "Update and refresh the local package and ABS databases against repositories"
sudo pacman -Sy; and sudo abs
end
else
function pacupd -d "Update and refresh the local package against repositories"
sudo pacman -Sy
end
end
plugins/archlinux/pacman/pacupg.fish
0 → 100644
View file @
8fa61126
function pacupg -d "Synchronize with repositories before upgrading packages that are out of date on the local system."
sudo pacman -Syu $argv
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment