update
This commit is contained in:
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -81,7 +81,7 @@ _fzf_comprun() {
|
||||
ssh|mosh|exssh) fzf --preview 'ssh -tt -G {} | head -n 4' "$@" ;;
|
||||
cd|ls|ll) fzf --preview 'tree -C -L1 {} | head -200' "$@" ;;
|
||||
cat|nano|micro|vi|vim|nvim) fzf --preview 'cat -s {} | head -200' "$@" ;;
|
||||
nala|apt|dpkg) dpkg --get-selections | grep -v deinstall | awk '{print \$1}' | fzf --multi --preview 'dpkg -s {1}' "$@" ;;
|
||||
nala|apt|dpkg) apt-cache search '' | awk '{print \$1}' | fzf --multi --preview 'apt-cache show {1}' "$@" ;;
|
||||
*) fzf "$@" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ Architectures: $OS_ARCH
|
||||
|
||||
setup(){
|
||||
apt update || true
|
||||
apt list nala ca-certificates curl gnupg gpg lsb-release git zsh | awk -F'/' '/\// {print $1}' | xargs -r apt install --no-install-recommends -y
|
||||
apt-cache search '' | awk '{print $1}' | grep -Ex 'nala|ca-certificates|curl|gnupg|gpg|lsb-release|git|zsh' | xargs -r apt install --no-install-recommends -y
|
||||
set_pkg_source
|
||||
apt update
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
cmd=$((command -v nala &>/dev/null && echo "nala") || echo "apt")
|
||||
$cmd update
|
||||
fd="$1"
|
||||
sed "s/ /\n/g" $fd | awk '!/^ *(#|$)/' | xargs -r apt list | awk -F'/' '/\// {print $1}' | xargs -r $cmd install --no-install-recommends -y
|
||||
apt-cache search '' | awk '{print $1}' | grep -Ex $(echo $(cat $fd | tr '\n' '|' | sed 's/ //g')) | xargs -r $cmd install --no-install-recommends -y
|
||||
Reference in new issue
Block a user