2020-06-11 13:11:19 +00:00
|
|
|
############################
|
|
|
|
# #
|
|
|
|
# ███████╗███████╗██╗ ██╗ #
|
|
|
|
# ╚══███╔╝██╔════╝██║ ██║ #
|
|
|
|
# ███╔╝ ███████╗███████║ #
|
|
|
|
# ███╔╝ ╚════██║██╔══██║ #
|
|
|
|
# ███████╗███████║██║ ██║ #
|
|
|
|
# ╚══════╝╚══════╝╚═╝ ╚═╝ #
|
|
|
|
# #
|
|
|
|
############################
|
|
|
|
|
2024-03-31 21:10:27 +00:00
|
|
|
export PATH=$HOME/.local/bin:$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
|
|
|
# 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
|
|
|
|
|
2024-06-11 21:44:44 +00:00
|
|
|
# Start oh-my-posh
|
|
|
|
eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/oh-my-posh/config.toml)"
|
|
|
|
|
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=""
|
2024-09-08 19:55:53 +00:00
|
|
|
HISTFILE="$XDG_CACHE_HOME/zsh_history"
|
|
|
|
HISTSIZE=10000
|
|
|
|
SAVEHIST=10000
|
|
|
|
setopt APPEND_HISTORY
|
2020-06-30 22:27:03 +00:00
|
|
|
|
2020-06-24 10:08:39 +00:00
|
|
|
# FZF
|
|
|
|
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
|
|
|
|
export FZF_DEFAULT_OPTS="--ansi"
|
|
|
|
|
2024-09-08 19:55:53 +00:00
|
|
|
# FZF history
|
|
|
|
source <(fzf --zsh)
|
|
|
|
|
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'
|
2024-03-31 21:10:27 +00:00
|
|
|
alias dotfiles="git --git-dir=$XDG_DATA_HOME/dotfiles-remastered --work-tree=$HOME" # dotfiles 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'"
|
2024-03-31 21:10:27 +00:00
|
|
|
#alias rm="trash" # broken autocompletion right now
|
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-03-31 21:10:27 +00:00
|
|
|
alias code="codium"
|
2024-09-08 19:55:53 +00:00
|
|
|
alias lg="lazygit"
|
2024-02-26 13:56:07 +00:00
|
|
|
|