Remove Debian|Ubuntu support

This commit is contained in:
Sam A. 2022-12-30 19:46:00 +01:00
parent d7e7259729
commit aef116579a
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
5 changed files with 10 additions and 28 deletions

View File

@ -1,7 +1,7 @@
# My dotfiles
This is a collection of some of my dotfiles for my Linux systems. They
work on Artix, Debian, Fedora and Ubuntu.
work on Artix and Fedora.
To install:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
cd -P -- "$(readlink -e "$(dirname "$0")")" || exit 255
echo "=> Checking dependencies..."
@ -11,9 +11,6 @@ echo "=> Determining OS..."
if [ "$(lsb_release -si)" = "Fedora" ]; then
set -- "alacritty" "nvim" "scripts" "zsh"
INSTALL="pkg install"
elif [ "$(lsb_release -si)" = "Debian" ] || [ "$(lsb_release -si)" = "Ubuntu" ]; then
set -- "scripts" "zsh"
INSTALL="sudo apt install"
elif [ "$(lsb_release -si)" = "Artix" ]; then
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
INSTALL="doas pacman -S"

View File

@ -3,14 +3,6 @@
[ "$(lsb_release -si)" = "Artix" ] && paru
[ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade
if [ "$(lsb_release -si)" = "Debian" ] || [ "$(lsb_release -si)" = "Ubuntu" ]; then
sudo apt update
echo
sudo apt upgrade --purge
echo
sudo apt autoremove --purge --yes
fi
command -v flatpak >/dev/null 2>&1 &&
{ echo; flatpak update; }
command -v npm >/dev/null 2>&1 &&

View File

@ -39,6 +39,10 @@ alias mount="udisksctl mount -b"
alias unlock="udisksctl unlock -b"
alias unmount="udisksctl unmount -b"
# Searching
alias grep="grep --color=always"
alias zgrep="zgrep --color=always"
# Misc.
(( ${+commands[tmux]} )) &&
alias tmux="tmux -2u"
@ -46,10 +50,8 @@ alias unmount="udisksctl unmount -b"
alias dnup="dotnet tool list --global | tail -n +3 | awk '{print \$1}' | xargs -l dotnet tool update --global"
alias cl="clear"
alias -g e="\$EDITOR"
alias grep="grep --color=always"
alias ls="ls --color=always"
alias q="exit 0"
alias zgrep="zgrep --color=always"
# Platform specific
if [[ $(lsb_release -si) == "Artix" ]]; then
@ -72,11 +74,4 @@ elif [[ $(lsb_release -si) == "Fedora" ]]; then
alias dnfrm="sudo dnf remove"
alias dnfsi="sudo dnf info"
alias dnfss="sudo dnf search"
elif [[ $(lsb_release -si) =~ "^Debian|Ubuntu$" ]]; then
alias aptin="sudo apt install"
alias aptqi="dpkg -s"
alias aptqs="dpkg -l"
alias aptrm="sudo apt purge"
alias aptsi="apt info"
alias aptss="apt search"
fi

View File

@ -1,6 +1,4 @@
if [[ ! $(lsb_release -si) =~ "^Debian|Ubuntu$" ]]; then
export GPG_TTY="$TTY"
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye &> /dev/null
fi
export GPG_TTY="$TTY"
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye &> /dev/null