Optimize Zsh config for Termux

This commit is contained in:
the_4n0nym0u53 2022-01-23 19:04:32 +01:00
parent 9fffd0c3e8
commit 9598e8ba09
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB
4 changed files with 24 additions and 16 deletions

View file

@ -8,6 +8,6 @@ function kill_services {
pkill "^pipewire$" pkill "^pipewire$"
} }
[[ $(tty) == "/dev/tty1" ]] && [[ $(lsb_release -si) == "Artix" ]] && [[ $(uname -o) != "Android" ]] && [[ $(lsb_release -si) == "Artix" ]] && [[ $(tty) == "/dev/tty1" ]] &&
kill_services >/dev/null kill_services >/dev/null
unfunction kill_services unfunction kill_services

View file

@ -1,4 +1,4 @@
if [[ $(tty) == "/dev/tty1" ]] && [[ $(lsb_release -si) == "Artix" ]]; then if [[ $(uname -o) != "Android" ]] && [[ $(lsb_release -si) == "Artix" ]] && [[ $(tty) == "/dev/tty1" ]]; then
export $(gnome-keyring-daemon --start) export $(gnome-keyring-daemon --start)
export XDG_CURRENT_DESKTOP="Unity" export XDG_CURRENT_DESKTOP="Unity"
export GTK_USE_PORTAL=1 export GTK_USE_PORTAL=1

View file

@ -2,25 +2,32 @@
alias btctl="bluetoothctl" alias btctl="bluetoothctl"
alias cl="clear" alias cl="clear"
alias cp="cp -i" alias cp="cp -i"
alias exa="exa -aFghl --color=always --git --icons"
alias grep="grep --color=always" alias grep="grep --color=always"
alias l="lsd -hlA --color=always"
alias la="lsd -hl --color=always"
alias ll="lsd -hlaF --color=always"
alias ls="ls --color=always" alias ls="ls --color=always"
alias mkdir="mkdir -p" alias mkdir="mkdir -p"
alias mv="mv -i" alias mv="mv -i"
alias q="exit" alias q="exit"
alias rm="rm -i" alias rm="rm -i"
alias srm="srm -i" alias srm="srm -i"
alias t="exa --tree -I '.git'"
alias tmux="tmux -2u" alias tmux="tmux -2u"
alias tree="exa --tree -I '.git'"
alias u="update.sh" alias u="update.sh"
alias wl-copy="wl-copy -n" alias wl-copy="wl-copy -n"
alias zgrep="zgrep --color=always" alias zgrep="zgrep --color=always"
if [[ $(lsb_release -si) == "Artix" ]]; then if [[ $(uname -o) == "Android" ]]; then
alias l="exa -aFhl --color=always --git --icons"
alias la="exa -Fhl --color=always --git --icons"
alias ll="exa -aaFghl --color=always --git --icons"
else
alias exa="exa -aFhl --color=always --git --icons"
alias l="lsd -hlA --color=always"
alias la="lsd -hl --color=always"
alias ll="lsd -hlaF --color=always"
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 poweroff="doas poweroff" alias poweroff="doas poweroff"
alias reboot="doas reboot" alias reboot="doas reboot"
fi
fi fi

View file

@ -1,5 +1,6 @@
# Configuration for gpg-agent, used with YubiKey and ssh if [[ $(uname -o) != "Android" ]]; 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