2020-06-11 13:11:19 +00:00
|
|
|
############################
|
|
|
|
# #
|
|
|
|
# ███████╗███████╗██╗ ██╗ #
|
|
|
|
# ╚══███╔╝██╔════╝██║ ██║ #
|
|
|
|
# ███╔╝ ███████╗███████║ #
|
|
|
|
# ███╔╝ ╚════██║██╔══██║ #
|
|
|
|
# ███████╗███████║██║ ██║ #
|
|
|
|
# ╚══════╝╚══════╝╚═╝ ╚═╝ #
|
|
|
|
# #
|
|
|
|
############################
|
|
|
|
|
2020-06-11 19:54:49 +00:00
|
|
|
# Required packages:
|
2020-08-03 14:28:12 +00:00
|
|
|
# - nerd-font-hack (AUR)
|
2020-07-14 21:04:54 +00:00
|
|
|
# - trash-cli (with gvfs)
|
2020-06-11 19:54:49 +00:00
|
|
|
|
2023-05-05 13:03:03 +00:00
|
|
|
export PATH=$HOME/.local/bin:$HOME/.dotnet/tools:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/cargo/bin:$PATH
|
2020-06-11 13:11:19 +00:00
|
|
|
|
|
|
|
[[ $- != *i* ]] && return
|
2021-02-26 15:11:35 +00:00
|
|
|
[ -n $SSH_CONNECTION ] && source ~/.profile
|
2020-06-11 13:11:19 +00:00
|
|
|
|
2024-02-26 13:56:07 +00:00
|
|
|
# NIXOS specific stuff
|
|
|
|
source /etc/zshrc
|
2020-06-11 13:11:19 +00:00
|
|
|
|
2024-02-26 13:56:07 +00:00
|
|
|
# P10K stuff
|
|
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
2020-06-11 13:11:19 +00:00
|
|
|
fi
|
2024-02-26 13:56:07 +00:00
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
2020-06-11 13:11:19 +00:00
|
|
|
|
2024-02-26 13:56:07 +00:00
|
|
|
# wal subshell for terminal colors
|
|
|
|
if test -f $XDG_CACHE_HOME/wal/sequences; then
|
|
|
|
(cat $XDG_CACHE_HOME/wal/sequences &)
|
2020-06-11 13:11:19 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
plugins=(
|
2024-02-26 13:56:07 +00:00
|
|
|
git
|
|
|
|
last-working-dir
|
|
|
|
extract
|
|
|
|
z
|
2020-06-11 13:11:19 +00:00
|
|
|
)
|
|
|
|
|
2020-06-24 10:08:39 +00:00
|
|
|
# Variables
|
2023-12-02 01:22:06 +00:00
|
|
|
export MANPAGER="bat -l man -p"
|
2023-05-05 13:03:03 +00:00
|
|
|
|
2020-06-30 22:27:03 +00:00
|
|
|
# ZSH percent fix
|
|
|
|
export PROMPT_EOL_MARK=""
|
|
|
|
|
2020-06-24 10:08:39 +00:00
|
|
|
# FZF
|
|
|
|
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
|
|
|
|
export FZF_DEFAULT_OPTS="--ansi"
|
|
|
|
|
2020-06-11 13:11:19 +00:00
|
|
|
# Aliases
|
|
|
|
alias vim="nvim"
|
|
|
|
alias please='sudo '
|
2024-02-26 13:56:07 +00:00
|
|
|
alias ls='exa --icons'
|
2024-01-11 23:39:49 +00:00
|
|
|
alias svim='sudoedit'
|
2020-06-11 14:05:02 +00:00
|
|
|
alias dotfiles="git --git-dir=$XDG_DATA_HOME/dotfiles-remastered --work-tree=$HOME" # dotfile config --local status.showUntrackedFiles no
|
2020-06-15 14:49:25 +00:00
|
|
|
alias open="xdg-open"
|
2020-06-25 17:52:20 +00:00
|
|
|
alias mixer="pulsemixer"
|
2023-05-05 13:03:03 +00:00
|
|
|
alias yt-dl-audio="yt-dlp --extract-audio --audio-format mp3 -o '%(title)s.%(ext)s'"
|
2020-07-14 21:04:54 +00:00
|
|
|
alias rm="trash"
|
2020-10-26 23:09:54 +00:00
|
|
|
alias modx="chmod +x"
|
2020-10-27 23:14:23 +00:00
|
|
|
alias mv="mv -iv"
|
|
|
|
alias cp="cp -riv"
|
|
|
|
alias mkdir="mkdir -pv"
|
2021-05-24 13:31:03 +00:00
|
|
|
alias ip="ip -c=auto"
|
2024-02-26 13:56:07 +00:00
|
|
|
alias syu="sudo nix-channel --update"
|
2021-10-28 17:43:04 +00:00
|
|
|
alias virsh="virsh -c qemu:///system"
|
2023-05-05 13:03:03 +00:00
|
|
|
alias k="kubectl"
|
|
|
|
alias ssh="TERM=xterm-256color ssh"
|
2023-12-02 01:22:06 +00:00
|
|
|
alias df="duf"
|
2024-02-26 13:56:07 +00:00
|
|
|
alias du="dust"
|
2023-12-02 01:22:06 +00:00
|
|
|
alias nom="npm"
|
2024-02-26 13:56:07 +00:00
|
|
|
|