diff --git a/desktop/zsh/.zsh-alias-global b/desktop/zsh/.zsh-alias-global new file mode 100644 index 0000000..a3ae5bc --- /dev/null +++ b/desktop/zsh/.zsh-alias-global @@ -0,0 +1,27 @@ +# Inferencium +# ZSH - Alias - Global + +# Copyright 2022-2023 Jake Winters +# SPDX-License-Identifier: GPL-3.0-or-later + +# Version: 3.0.0.7 + + +# Navigation +alias ..='cd ..' +alias cl='clear' +alias l='ls -CF --color=auto' +alias la='ls -A --color=auto' +alias ll='ls -l --color=auto' +alias ls='ls -F --color=auto' +alias tr='tree -C' + +# File management +alias clp='wl-copy' +alias cp='rsync -acv' +alias md='mkdir -v' +alias mv='mv -iv' +alias rm='rm -iv' + +# Tools +alias diff='diff -s' diff --git a/desktop/zsh/.zshenv b/desktop/zsh/.zshenv new file mode 100644 index 0000000..71fe2ab --- /dev/null +++ b/desktop/zsh/.zshenv @@ -0,0 +1,25 @@ +# Inferencium +# ZSH - env + +# Copyright 2022-2023 Jake Winters +# SPDX-License-Identifier: GPL-3.0-or-later + +# Version: 2.0.0.8 + + +PATH="/bin/:/usr/bin/:/usr/local/bin/" +ROOTPATH="/sbin/:/bin/:/usr/sbin/:/usr/bin/:/usr/local/sbin/:/usr/local/bin/" +LDPATH="/lib/:/usr/lib/:/usr/local/lib/" +MANPATH="/usr/share/man/:/usr/local/share/man/" +INFODIR="/usr/share/info/:/usr/local/share/info/" +PAGER="/usr/bin/less" +EDITOR="/usr/bin/nvim" +KDEDIRS="/usr/" +CONFIG_PROTECT="/etc/alacritty/ \ + /etc/mc/ \ + /etc/mpv/ \ + /etc/neofetch/ \ + /etc/nvim/ \ + /etc/sway/ \ + /etc/waybar/ \ + /etc/zsh/" diff --git a/desktop/zsh/.zshrc b/desktop/zsh/.zshrc new file mode 100644 index 0000000..9b818b4 --- /dev/null +++ b/desktop/zsh/.zshrc @@ -0,0 +1,55 @@ +# Inferencium +# ZSH - rc + +# Copyright 2022-2023 Jake Winters +# SPDX-License-Identifier: GPL-3.0-or-later + +# Version: 5.0.1.12 + + +# Temporary export variables until permanent solution is found +export LD_PRELOAD="/usr/local/lib/libhardened_malloc.so" + +# Prompt +PROMPT=%n@%M:%#" " + +# Options +setopt extendedglob KSH_ARRAYS nomatch +unsetopt autocd AUTO_REMOVE_SLASH beep + +# Keybinds +bindkey -e +bindkey "^[[3" delete-char +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line + +# zstyle +zstyle :compinstall filename '~/.zshrc' +zstyle ':completion:*' menu select + +autoload -Uz compinit +compinit + +# History +HISTFILE=~/.zsh-history +HISTSIZE=1024 +SAVEHIST=1024 + +# XDG_RUNTIME_DIR +if test -z "${XDG_RUNTIME_DIR}"; then + export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir + if ! test -d "${XDG_RUNTIME_DIR}"; then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi +fi + +# Aliases. +## Global +if [[ -f ~/.zsh-alias-global ]]; then + . ~/.zsh-alias-global +fi +## User +if [[ -f ~/.zsh-alias-user ]]; then + . ~/.zsh-alias-user +fi