Add ZSH configuration files to branch beta.
This commit is contained in:
parent
8b07947b85
commit
45b503330d
27
desktop/zsh/.zsh-alias-global
Normal file
27
desktop/zsh/.zsh-alias-global
Normal file
@ -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'
|
25
desktop/zsh/.zshenv
Normal file
25
desktop/zsh/.zshenv
Normal file
@ -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/"
|
55
desktop/zsh/.zshrc
Normal file
55
desktop/zsh/.zshrc
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user