Optimize Zsh config for Termux
This commit is contained in:
parent
9fffd0c3e8
commit
9598e8ba09
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
|
alias l="exa -aFhl --color=always --git --icons"
|
||||||
alias poweroff="doas poweroff"
|
alias la="exa -Fhl --color=always --git --icons"
|
||||||
alias reboot="doas reboot"
|
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 poweroff="doas poweroff"
|
||||||
|
alias reboot="doas reboot"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue