Remove Android compatibility
This commit is contained in:
parent
bcda808622
commit
fbc45f2b9c
|
@ -1,7 +1,7 @@
|
||||||
# My dotfiles
|
# My dotfiles
|
||||||
|
|
||||||
This is a collection of some of my dotfiles for my Linux systems. These
|
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:
|
To install:
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,6 @@ kill_services() {
|
||||||
pkill "^pipewire$"
|
pkill "^pipewire$"
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ $(uname -o) == "GNU/Linux" ]] && [[ $(lsb_release -si) == "Artix" ]] && [[ $(tty) == "/dev/tty1" ]] &&
|
[[ $(lsb_release -si) == "Artix" ]] && [[ $(tty) == "/dev/tty1" ]] \
|
||||||
kill_services >/dev/null
|
&& kill_services >/dev/null
|
||||||
unfunction kill_services
|
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 XDG_CURRENT_DESKTOP="Unity"
|
||||||
export GTK_USE_PORTAL=1
|
export GTK_USE_PORTAL=1
|
||||||
export QT_QPA_PLATFORM="wayland"
|
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
|
fi
|
||||||
|
|
|
@ -3,11 +3,9 @@ export PATH="$HOME/.local/bin:$PATH"
|
||||||
(( ${+commands[go]} )) && export PATH="$(go env GOPATH)/bin:$PATH"
|
(( ${+commands[go]} )) && export PATH="$(go env GOPATH)/bin:$PATH"
|
||||||
|
|
||||||
# Essentials
|
# 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_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 PAGER="less"
|
||||||
export EDITOR="nano"
|
export EDITOR="nano"
|
||||||
(( ${+commands[vim]} )) && export EDITOR="vim"
|
(( ${+commands[vim]} )) && export EDITOR="vim"
|
||||||
|
|
|
@ -30,6 +30,12 @@ alias gi="git init"
|
||||||
alias gsa="git submodule add"
|
alias gsa="git submodule add"
|
||||||
alias gsur="git submodule update --remote"
|
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.
|
# Misc.
|
||||||
(( ${+commands[tmux]} )) \
|
(( ${+commands[tmux]} )) \
|
||||||
&& alias tmux="tmux -2u"
|
&& alias tmux="tmux -2u"
|
||||||
|
@ -43,14 +49,6 @@ alias q="exit 0"
|
||||||
alias zgrep="zgrep --color=always"
|
alias zgrep="zgrep --color=always"
|
||||||
|
|
||||||
# Platform specific
|
# 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 code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
|
||||||
alias pacin="doas pacman -S"
|
alias pacin="doas pacman -S"
|
||||||
|
@ -79,9 +77,3 @@ elif [[ $(uname -o) == "GNU/Linux" ]]; then
|
||||||
alias aptsi="apt info"
|
alias aptsi="apt info"
|
||||||
alias aptss="apt search"
|
alias aptss="apt search"
|
||||||
fi
|
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
|
if [[ $(lsb_release -si) != "Debian" ]] && [[ $(lsb_release -si) != "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
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# History file configuration
|
# History file configuration
|
||||||
HISTFILE="$ZDOTDIR/.zsh_history"
|
HISTFILE="$ZDOTDIR/.zsh_history"
|
||||||
HISTSIZE=50000
|
HISTSIZE=10000
|
||||||
SAVEHIST=10000
|
SAVEHIST=5000
|
||||||
|
|
||||||
# History command configuration
|
# History command configuration
|
||||||
setopt EXTENDED_HISTORY
|
setopt EXTENDED_HISTORY
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
# Zsh config
|
# 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