diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md deleted file mode 100644 index 8c04db1108286d83e708623ee924e6efa575fc6f..0000000000000000000000000000000000000000 --- a/plugins/archlinux/README.md +++ /dev/null @@ -1,22 +0,0 @@ - -# 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`. - - - - diff --git a/plugins/archlinux/archlinux.load b/plugins/archlinux/archlinux.load deleted file mode 100644 index 54d711a70100e8bd085fb8dc18bd459d286b19e0..0000000000000000000000000000000000000000 --- a/plugins/archlinux/archlinux.load +++ /dev/null @@ -1,6 +0,0 @@ - - -set -l current_dir (dirname $argv) - -# add pacman related functions -set fish_function_path $current_dir/pacman $fish_function_path diff --git a/plugins/archlinux/pacman/README.md b/plugins/archlinux/pacman/README.md deleted file mode 100644 index 054d699101d1da109eaf4eb4e5cfd6a85720e39a..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/README.md +++ /dev/null @@ -1,52 +0,0 @@ - -# 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 diff --git a/plugins/archlinux/pacman/pacdisowned.fish b/plugins/archlinux/pacman/pacdisowned.fish deleted file mode 100644 index 2f0f0129b3d8d0d929c5a9005750cca27caa8067..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacdisowned.fish +++ /dev/null @@ -1,22 +0,0 @@ -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 - diff --git a/plugins/archlinux/pacman/pacin.fish b/plugins/archlinux/pacman/pacin.fish deleted file mode 100644 index 07b278327580dbb61d7b208f01c946cb914765bf..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacin.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacin -d "Install specific package(s) from the repositories" - sudo pacman -S $argv -end diff --git a/plugins/archlinux/pacman/pacins.fish b/plugins/archlinux/pacman/pacins.fish deleted file mode 100644 index 4456eafbd76e181fe0c3395fa7e28920827bef6f..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacins.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacins -d "Install specific package not from the repositories but from a file" - sudo pacman -U $argv -end diff --git a/plugins/archlinux/pacman/paclist.fish b/plugins/archlinux/pacman/paclist.fish deleted file mode 100644 index 2c777f4082862a9261127e501690fdf56594ab14..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/paclist.fish +++ /dev/null @@ -1,3 +0,0 @@ -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 diff --git a/plugins/archlinux/pacman/pacloc.fish b/plugins/archlinux/pacman/pacloc.fish deleted file mode 100644 index 61f3e01a096731723770bc62751902f1f66f5724..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacloc.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacloc -d "Display information about a given package in the local database" - pacman -Qi $argv -end diff --git a/plugins/archlinux/pacman/paclocs.fish b/plugins/archlinux/pacman/paclocs.fish deleted file mode 100644 index 5f6ae70e1170a63672659a4cfc12b303b7209c72..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/paclocs.fish +++ /dev/null @@ -1,3 +0,0 @@ -function paclocs -d "Search for package(s) in the local database" - pacman -Qs $argv -end diff --git a/plugins/archlinux/pacman/paclsorphans.fish b/plugins/archlinux/pacman/paclsorphans.fish deleted file mode 100644 index 7d1b3346692a558669a783589816107f14f2126a..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/paclsorphans.fish +++ /dev/null @@ -1,3 +0,0 @@ -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 diff --git a/plugins/archlinux/pacman/pacmanallkeys.fish b/plugins/archlinux/pacman/pacmanallkeys.fish deleted file mode 100644 index 8dcbba777cebe310ccd0d7a801aea84e2053a7b7..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacmanallkeys.fish +++ /dev/null @@ -1,3 +0,0 @@ -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 diff --git a/plugins/archlinux/pacman/pacmansignkeys.fish b/plugins/archlinux/pacman/pacmansignkeys.fish deleted file mode 100644 index 5ad10cb46ca25cf8de79cee5624df507556e93ed..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacmansignkeys.fish +++ /dev/null @@ -1,8 +0,0 @@ -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 diff --git a/plugins/archlinux/pacman/pacmir.fish b/plugins/archlinux/pacman/pacmir.fish deleted file mode 100644 index 58f1982393e83bdecf64b865694440c29651f561..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacmir.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacmir -d "Force refresh of all package lists after updating /etc/pacman.d/mirrorlist" - sudo pacman -Syy $argv -end diff --git a/plugins/archlinux/pacman/pacre.fish b/plugins/archlinux/pacman/pacre.fish deleted file mode 100644 index 94b7b3493a193fd1ce741d6340038059ed566956..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacre.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacre -d "Remove the specified package(s), retaining its configuration(s) and required dependencies" - sudo pacman -R $argv -end diff --git a/plugins/archlinux/pacman/pacrem.fish b/plugins/archlinux/pacman/pacrem.fish deleted file mode 100644 index 79fdc2778b640bd26bccb912792b6de33c9efecb..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacrem.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacrem -d "Remove the specified package(s), its configuration(s) and unneeded dependencies" - sudo pacman -Rns $argv -end diff --git a/plugins/archlinux/pacman/pacrep.fish b/plugins/archlinux/pacman/pacrep.fish deleted file mode 100644 index 74dfbeca0fff783c1f36aa01589dbaeffa55a25e..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacrep.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacrep -d "Display information about a given package in the repositories" - pacman -Si $argv -end diff --git a/plugins/archlinux/pacman/pacreps.fish b/plugins/archlinux/pacman/pacreps.fish deleted file mode 100644 index 8b5e6f34fe307671805a44c240309e603e0da38c..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacreps.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacreps -d "Search for package(s) in the repositories" - pacman -Ss $argv -end diff --git a/plugins/archlinux/pacman/pacrmorphans.fish b/plugins/archlinux/pacman/pacrmorphans.fish deleted file mode 100644 index 740ac9863b9b69e7b3d8a72fcc1f038fd2a8d8fe..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacrmorphans.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacrmorphans -d "Remove all real orphan packages" - sudo pacman -Rs (pacman -Qtdq) $argv -end diff --git a/plugins/archlinux/pacman/pacupd.fish b/plugins/archlinux/pacman/pacupd.fish deleted file mode 100644 index fdd9c6416dfb799dff46877d1b903ee486b11cab..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacupd.fish +++ /dev/null @@ -1,10 +0,0 @@ -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 diff --git a/plugins/archlinux/pacman/pacupg.fish b/plugins/archlinux/pacman/pacupg.fish deleted file mode 100644 index 0f0ee5bf60bc5a68b8de016baae3e844939a6bac..0000000000000000000000000000000000000000 --- a/plugins/archlinux/pacman/pacupg.fish +++ /dev/null @@ -1,3 +0,0 @@ -function pacupg -d "Synchronize with repositories before upgrading packages that are out of date on the local system." - sudo pacman -Syu $argv -end