Remove .config/zsh/aliases.zsh

Remove .config/zsh/evalcache.zsh
Remove .config/zsh/export.zsh
Remove .config/zsh/keybinds.zsh
Remove .config/zsh/libraries.zsh
Remove .config/zsh/plugins.zsh
Remove .config/zsh/sshagent.zsh
Remove .config/zsh/sshcompfix.zsh
This commit is contained in:
eeleater 2022-11-13 16:26:53 +01:00
parent 3a9d17c73b
commit 9fda083054
8 changed files with 0 additions and 123 deletions

View file

@ -1,18 +0,0 @@
# replacements for old tools
alias ls='exa'
alias l='ls -al --color=always --group-directories-first'
alias cat='bat'
alias cd='z'
alias grep='rg'
alias find='fd'
# make rm, cp and mv safer
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# misc aliases
alias tree='tree -a -I .git'
alias https='http --default-scheme=https'
alias termbin="nc termbin.com 9999"
if (( ${+commands[nvim]} )); then alias vim="nvim"; fi

View file

@ -1,2 +0,0 @@
_evalcache zoxide init zsh
_evalcache dircolors -b $LSCOLORSFILE

View file

@ -1,41 +0,0 @@
# XDG Specs
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_CACHE_HOME="$HOME/.cache"
# GPG
export GPG_TTY=$TTY
# History
mkdir -p "$HOME/.cache/zsh" &>/dev/null
export SAVEHIST=1048576
export HISTSIZE=1048576
export HISTFILE="$HOME/.cache/zsh/history"
setopt inc_append_history
# Evalcache
export ZSH_EVALCACHE_DIR="$HOME/.cache/evalcache"
# Spacevim
export SPACEVIMDIR="$HOME/.config/spacevim/"
# Stuff
export FZF_MARKS_FILE="$HOME/.config/fzfmarks"
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export LESSHISTFILE="-"
export OMZ="$Z4H/ohmyzsh/ohmyzsh"
export OMP="$OMZ/plugins"
export OML="$OMZ/lib"
export LSCOLORSFILE="$Z4H/trapd00r/LS_COLORS/LS_COLORS"
# Sheldon
#export SHELDON_CONFIG_DIR="$HOME/.config/sheldon"
#export SHELDON_CONFIG_FILE="$SHELDON_CONFIG_DIR/plugins.toml"
#export SHELDON_LOCK_FILE="$SHELDON_CONFIG_DIR/plugins.lock"
#export SHELDON_DATA_DIR="$HOME/.local/sheldon"
#export SHELDON_CLONE_DIR="$SHELDON_DATA_DIR/repos"
#export SHELDON_DOWNLOAD_DIR="$SHELDON_DATA_DIR/downloads"
# Starship
#export STARSHIP_CONFIG="$HOME/.config/starship/config.toml"

View file

@ -1,3 +0,0 @@
run_ranger () { echo; ranger < $TTY; zle redisplay }
zle -N run_ranger
bindkey '^f' run_ranger

View file

@ -1,5 +0,0 @@
z4h source -c $OML/history.zsh
z4h source -c $OML/completion.zsh
z4h source -c $OML/directories.zsh
z4h source -c $OML/clipboard.zsh
z4h source -c $OML/grep.zsh

View file

@ -1,9 +0,0 @@
# plugins (ohmyzsh)
z4h source -c $OMP/command-not-found/command-not-found.plugin.zsh
z4h source -c $OMP/extract/extract.plugin.zsh
z4h source -c $OMP/systemd/systemd.plugin.zsh
# plugins (self)
z4h source -c $Z4H/urbainvaes/fzf-marks/fzf-marks.plugin.zsh
z4h source -c $Z4H/mroth/evalcache/evalcache.plugin.zsh
z4h source -c $Z4H/zpm-zsh/colorize/colorize.plugin.zsh

View file

@ -1,31 +0,0 @@
SSH_ENV="$HOME/.ssh/environment"
KEY="$HOME/.ssh/id_rsa"
function start_agent () {
ssh-agent -s | sed 's/^echo/#echo/' > "$SSH_ENV"
chmod 600 "$SSH_ENV"
. "$SSH_ENV" > /dev/null
}
function add_identities () {
ssh-add -l | grep "The agent has no identities" > /dev/null
if [ $? -eq 0 ]; then
ssh-add $KEY &> /dev/null
fi
}
function is_ssh_agent_pid_valid () {
ps -ef | grep $1 | grep -v grep | grep ssh-agent > /dev/null
}
if [ -n "$SSH_AGENT_PID" ] && is_ssh_agent_pid_valid $SSH_AGENT_PID; then
add_identities
else
if [ -f "$SSH_ENV" ]; then
. "$SSH_ENV" > /dev/null
fi
if ! is_ssh_agent_pid_valid $SSH_AGENT_PID; then
start_agent
fi
add_identities
fi

View file

@ -1,14 +0,0 @@
# use known_hosts for completion
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
# order stuff
zstyle ':completion:*:(scp|ssh):*' tag-order 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *'
zstyle ':completion:*:scp:*' group-order users files all-files hosts-domain hosts-host hosts-ipaddr
zstyle ':completion:*:ssh:*' group-order hosts-domain hosts-host users hosts-ipaddr
# ignored patterns
zstyle ':completion:*:*:*:users' ignored-patterns '*'
zstyle ':completion:*:*:*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost localhost4 localhost6 ip6-localhost broadcasthost
zstyle ':completion:*:*:*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org' '*.local' '*.hbz-nrw.de'
zstyle ':completion:*:*:*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'