Remove Debian|Ubuntu support
This commit is contained in:
parent
d7e7259729
commit
aef116579a
|
@ -1,7 +1,7 @@
|
||||||
# My dotfiles
|
# My dotfiles
|
||||||
|
|
||||||
This is a collection of some of my dotfiles for my Linux systems. They
|
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:
|
To install:
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd -P -- "$(readlink -e "$(dirname "$0")")" || exit 255
|
cd -P -- "$(readlink -e "$(dirname "$0")")" || exit 255
|
||||||
echo "=> Checking dependencies..."
|
echo "=> Checking dependencies..."
|
||||||
|
@ -11,9 +11,6 @@ echo "=> Determining OS..."
|
||||||
if [ "$(lsb_release -si)" = "Fedora" ]; then
|
if [ "$(lsb_release -si)" = "Fedora" ]; then
|
||||||
set -- "alacritty" "nvim" "scripts" "zsh"
|
set -- "alacritty" "nvim" "scripts" "zsh"
|
||||||
INSTALL="pkg install"
|
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
|
elif [ "$(lsb_release -si)" = "Artix" ]; then
|
||||||
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
|
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
|
||||||
INSTALL="doas pacman -S"
|
INSTALL="doas pacman -S"
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
[ "$(lsb_release -si)" = "Artix" ] && paru
|
[ "$(lsb_release -si)" = "Artix" ] && paru
|
||||||
[ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade
|
[ "$(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 &&
|
command -v flatpak >/dev/null 2>&1 &&
|
||||||
{ echo; flatpak update; }
|
{ echo; flatpak update; }
|
||||||
command -v npm >/dev/null 2>&1 &&
|
command -v npm >/dev/null 2>&1 &&
|
||||||
|
|
|
@ -39,6 +39,10 @@ alias mount="udisksctl mount -b"
|
||||||
alias unlock="udisksctl unlock -b"
|
alias unlock="udisksctl unlock -b"
|
||||||
alias unmount="udisksctl unmount -b"
|
alias unmount="udisksctl unmount -b"
|
||||||
|
|
||||||
|
# Searching
|
||||||
|
alias grep="grep --color=always"
|
||||||
|
alias zgrep="zgrep --color=always"
|
||||||
|
|
||||||
# Misc.
|
# Misc.
|
||||||
(( ${+commands[tmux]} )) &&
|
(( ${+commands[tmux]} )) &&
|
||||||
alias tmux="tmux -2u"
|
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 dnup="dotnet tool list --global | tail -n +3 | awk '{print \$1}' | xargs -l dotnet tool update --global"
|
||||||
alias cl="clear"
|
alias cl="clear"
|
||||||
alias -g e="\$EDITOR"
|
alias -g e="\$EDITOR"
|
||||||
alias grep="grep --color=always"
|
|
||||||
alias ls="ls --color=always"
|
alias ls="ls --color=always"
|
||||||
alias q="exit 0"
|
alias q="exit 0"
|
||||||
alias zgrep="zgrep --color=always"
|
|
||||||
|
|
||||||
# Platform specific
|
# Platform specific
|
||||||
if [[ $(lsb_release -si) == "Artix" ]]; then
|
if [[ $(lsb_release -si) == "Artix" ]]; then
|
||||||
|
@ -72,11 +74,4 @@ elif [[ $(lsb_release -si) == "Fedora" ]]; then
|
||||||
alias dnfrm="sudo dnf remove"
|
alias dnfrm="sudo dnf remove"
|
||||||
alias dnfsi="sudo dnf info"
|
alias dnfsi="sudo dnf info"
|
||||||
alias dnfss="sudo dnf search"
|
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
|
fi
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
if [[ ! $(lsb_release -si) =~ "^Debian|Ubuntu$" ]]; then
|
export GPG_TTY="$TTY"
|
||||||
export GPG_TTY="$TTY"
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
gpgconf --launch gpg-agent
|
||||||
gpgconf --launch gpg-agent
|
gpg-connect-agent updatestartuptty /bye &> /dev/null
|
||||||
gpg-connect-agent updatestartuptty /bye &> /dev/null
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue