Remove Android compatibility
This commit is contained in:
parent
bcda808622
commit
fbc45f2b9c
|
@ -1,7 +1,7 @@
|
|||
# My dotfiles
|
||||
|
||||
This is a collection of some of my dotfiles for my Linux systems. These
|
||||
work on Artix, Debian, Fedora, Ubuntu and Termux (Android).
|
||||
work on Artix, Debian, Fedora and Ubuntu.
|
||||
|
||||
To install:
|
||||
|
||||
|
|
|
@ -8,6 +8,6 @@ kill_services() {
|
|||
pkill "^pipewire$"
|
||||
}
|
||||
|
||||
[[ $(uname -o) == "GNU/Linux" ]] && [[ $(lsb_release -si) == "Artix" ]] && [[ $(tty) == "/dev/tty1" ]] &&
|
||||
kill_services >/dev/null
|
||||
[[ $(lsb_release -si) == "Artix" ]] && [[ $(tty) == "/dev/tty1" ]] \
|
||||
&& kill_services >/dev/null
|
||||
unfunction kill_services
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
if [[ $(uname -o) == "GNU/Linux" ]] && [[ $(lsb_release -si) == "Artix" ]] && [[ $(tty) == "/dev/tty1" ]]; then
|
||||
if [[ $(lsb_release -si) == "Artix" ]] && [[ $(tty) == "/dev/tty1" ]]; then
|
||||
export XDG_CURRENT_DESKTOP="Unity"
|
||||
export GTK_USE_PORTAL=1
|
||||
export QT_QPA_PLATFORM="wayland"
|
||||
|
||||
dbus-launch --sh-syntax --exit-with-session sway &> /dev/null; exit
|
||||
dbus-launch --sh-syntax --exit-with-session sway &> /dev/null; exit 0
|
||||
fi
|
||||
|
|
|
@ -3,11 +3,9 @@ export PATH="$HOME/.local/bin:$PATH"
|
|||
(( ${+commands[go]} )) && export PATH="$(go env GOPATH)/bin:$PATH"
|
||||
|
||||
# Essentials
|
||||
[[ $(uname -o) == "GNU/Linux" ]] \
|
||||
&& [[ $(lsb_release -si) != "Debian" ]] \
|
||||
&& [[ $(lsb_release -si) != "Ubuntu" ]] \
|
||||
[[ $(lsb_release -si) != "Debian" ]] && [[ $(lsb_release -si) != "Ubuntu" ]] \
|
||||
&& export LANG="en_DK.UTF-8" \
|
||||
|| export LANG="en_US.UTF-8" && export TERM="xterm-256color"
|
||||
|| { export LANG="en_US.UTF-8"; export TERM="xterm-256color"; }
|
||||
export PAGER="less"
|
||||
export EDITOR="nano"
|
||||
(( ${+commands[vim]} )) && export EDITOR="vim"
|
||||
|
|
|
@ -30,6 +30,12 @@ alias gi="git init"
|
|||
alias gsa="git submodule add"
|
||||
alias gsur="git submodule update --remote"
|
||||
|
||||
# Mounting
|
||||
alias lock="udisksctl lock -b"
|
||||
alias mount="udisksctl mount -b"
|
||||
alias unlock="udisksctl unlock -b"
|
||||
alias unmount="udisksctl unmount -b"
|
||||
|
||||
# Misc.
|
||||
(( ${+commands[tmux]} )) \
|
||||
&& alias tmux="tmux -2u"
|
||||
|
@ -43,15 +49,7 @@ alias q="exit 0"
|
|||
alias zgrep="zgrep --color=always"
|
||||
|
||||
# Platform specific
|
||||
if [[ $(uname -o) == "Android" ]]; then
|
||||
alias pkgin="pkg install"
|
||||
alias pkgrm="pkg uninstall --purge"
|
||||
alias pkgqi="dpkg -s"
|
||||
alias pkgqs="dpkg -l"
|
||||
alias pkgsi="pkg info"
|
||||
alias pkgss="pkg search"
|
||||
elif [[ $(uname -o) == "GNU/Linux" ]]; then
|
||||
if [[ $(lsb_release -si) == "Artix" ]]; then
|
||||
if [[ $(lsb_release -si) == "Artix" ]]; then
|
||||
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
|
||||
alias pacin="doas pacman -S"
|
||||
alias pacls="pacman -Qkl"
|
||||
|
@ -64,24 +62,18 @@ elif [[ $(uname -o) == "GNU/Linux" ]]; then
|
|||
alias poweroff="doas poweroff"
|
||||
alias reboot="doas reboot"
|
||||
alias usb="doas usbctl tmp"
|
||||
elif [[ $(lsb_release -si) == "Fedora" ]]; then
|
||||
elif [[ $(lsb_release -si) == "Fedora" ]]; then
|
||||
alias code="codium"
|
||||
alias dnfin="sudo dnf install"
|
||||
alias dnfqs="sudo dnf list installed"
|
||||
alias dnfrm="sudo dnf remove"
|
||||
alias dnfsi="sudo dnf info"
|
||||
alias dnfss="sudo dnf search"
|
||||
elif [[ $(lsb_release -si) == "Debian" ]] || [[ $(lsb_release -si) == "Ubuntu" ]]; then
|
||||
elif [[ $(lsb_release -si) == "Debian" ]] || [[ $(lsb_release -si) == "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
|
||||
|
||||
alias lock="udisksctl lock -b"
|
||||
alias mount="udisksctl mount -b"
|
||||
alias unlock="udisksctl unlock -b"
|
||||
alias unmount="udisksctl unmount -b"
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
if [[ $(uname -o) == "GNU/Linux" ]] && [[ $(lsb_release -si) != "Debian" ]] && [[ $(lsb_release -si) != "Ubuntu" ]]; then
|
||||
export GPG_TTY=$TTY
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
if [[ $(lsb_release -si) != "Debian" ]] && [[ $(lsb_release -si) != "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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# History file configuration
|
||||
HISTFILE="$ZDOTDIR/.zsh_history"
|
||||
HISTSIZE=50000
|
||||
SAVEHIST=10000
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=5000
|
||||
|
||||
# History command configuration
|
||||
setopt EXTENDED_HISTORY
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# Zsh config
|
||||
|
||||
For plugins, this Zsh config uses [Antidote](https://github.com/mattmc3/antidote.git), a minimal and easy to use Zsh plugin manager.
|
||||
For plugins, this Zsh config uses
|
||||
[Antidote](https://github.com/mattmc3/antidote.git), a minimal and easy
|
||||
to use Zsh plugin manager.
|
||||
|
||||
Instead of directly using Oh-My-Zsh, we load specific plugins from it. I like to keep it simple. Also, Oh-My-Zsh is slow, this is much faster.
|
||||
Instead of directly using Oh-My-Zsh, we load specific plugins from it. I
|
||||
like to keep it simple. Also, Oh-My-Zsh is slow, this is much faster.
|
||||
|
|
Loading…
Reference in a new issue