slim down zsh

This commit is contained in:
2020-11-05 21:27:14 +01:00
parent f5d2ccdd09
commit 412b52726f
2 changed files with 11 additions and 34 deletions

View File

@@ -1,13 +0,0 @@
export GOPATH="$HOME/Code/go"
export PATH="$HOME/.cargo/bin:$HOME/.gem/bin:$HOME/.go/bin:$GOPATH/bin:$HOME/.local/bin:/usr/local/go/bin:$PATH"
if [[ -x /usr/bin/nvim ]]; then
EDITOR="nvim"
else
EDITOR="vim"
fi
export EDITOR=$EDITOR
export VISUAL=$EDITOR
export QT_QPA_PLATFORM=xcb

View File

@@ -86,29 +86,19 @@ preexec () {
alias :q="exit" alias :q="exit"
alias ..="cd .." alias ..="cd .."
[[ -x /usr/bin/xdg-open ]] && alias open="xdg-open" [[ -x /usr/bin/xdg-open ]] && alias open="xdg-open"
[[ -x /usr/bin/yay ]] && alias yay="yay --aur --removemake"
wttr() { sshl() {
curl wttr.in/$1
}
sshn() {
ssh -N -L ${1}:localhost:${2} $3 ssh -N -L ${1}:localhost:${2} $3
} }
dupfind() {
if [ $# -lt 1 ]; then
echo "Usage: $0 THREAD_COUNT [directory] ..." > /dev/stderr
fi
if ! [[ "$1" =~ ^[0-9]+$ ]]; then
echo "THREAD_COUNT needs to be an integer." > /dev/stderr
else
if [ $# -lt 2 ]; then
find . ! -empty -type f -print0 | xargs -0 -n1 -P${1} md5sum | sort | uniq -w32 -dD
else
find ${@:2:128} ! -empty -type f -print0 | xargs -0 -n1 -P${1} md5sum | sort | uniq -w32 -dD
fi
fi
}
[[ -x /usr/bin/dircolors ]] && eval "$(dircolors)" [[ -x /usr/bin/dircolors ]] && eval "$(dircolors)"
export GOPATH="$HOME/Code/go"
export PATH="$HOME/.cargo/bin:$HOME/.gem/bin:$HOME/.go/bin:$GOPATH/bin:$HOME/.local/bin:$PATH"
if [[ -x /usr/bin/nvim ]]; then
export EDITOR=nvim
elif [[ -x /usr/bin/vim ]]; then
export EDITOR=vim
fi