too lazy. something zsh.

This commit is contained in:
Niklas Kapelle 2024-03-31 23:10:27 +02:00
parent 425a7e9565
commit 1c8beadaa6
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

20
.zshrc
View File

@ -9,11 +9,7 @@
# #
############################
# Required packages:
# - nerd-font-hack (AUR)
# - trash-cli (with gvfs)
export PATH=$HOME/.local/bin:$HOME/.dotnet/tools:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/cargo/bin:$PATH
export PATH=$HOME/.local/bin:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/cargo/bin:$PATH
[[ $- != *i* ]] && return
[ -n $SSH_CONNECTION ] && source ~/.profile
@ -25,20 +21,13 @@ source /etc/zshrc
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[[ ! -f ~/.cache/p10k.zsh ]] || source ~/.cache/p10k.zsh
# wal subshell for terminal colors
if test -f $XDG_CACHE_HOME/wal/sequences; then
(cat $XDG_CACHE_HOME/wal/sequences &)
fi
plugins=(
git
last-working-dir
extract
z
)
# Variables
export MANPAGER="bat -l man -p"
@ -54,11 +43,11 @@ alias vim="nvim"
alias please='sudo '
alias ls='exa --icons'
alias svim='sudoedit'
alias dotfiles="git --git-dir=$XDG_DATA_HOME/dotfiles-remastered --work-tree=$HOME" # dotfile config --local status.showUntrackedFiles no
alias dotfiles="git --git-dir=$XDG_DATA_HOME/dotfiles-remastered --work-tree=$HOME" # dotfiles config --local status.showUntrackedFiles no
alias open="xdg-open"
alias mixer="pulsemixer"
alias yt-dl-audio="yt-dlp --extract-audio --audio-format mp3 -o '%(title)s.%(ext)s'"
alias rm="trash"
#alias rm="trash" # broken autocompletion right now
alias modx="chmod +x"
alias mv="mv -iv"
alias cp="cp -riv"
@ -71,4 +60,5 @@ alias ssh="TERM=xterm-256color ssh"
alias df="duf"
alias du="dust"
alias nom="npm"
alias code="codium"