38
zsh/.zshrc
38
zsh/.zshrc
@@ -45,31 +45,16 @@ setopt SHARE_HISTORY
|
||||
|
||||
# Alias
|
||||
alias q="exit"
|
||||
alias b="byobu"
|
||||
alias vim="nvim"
|
||||
alias cat="bat --pager=never"
|
||||
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
|
||||
alias xsel='xsel -ib'
|
||||
alias msfconsole="msfconsole -x \"db_connect metasploit@msf\""
|
||||
alias ed="\emacs --daemon"
|
||||
alias e="open_emacs"
|
||||
alias df="df -h"
|
||||
alias picpaste="xclip -selection clipboard -t image/png -o"
|
||||
alias eledger="emacsclient -nw ~/Documents/Finanzen/Ledger/MyBudget.ledger"
|
||||
alias sshconfig="emacsclient -nw ~/.ssh/config"
|
||||
alias econfig="emacsclient -nw ~/.doom.d/init.el"
|
||||
alias wttr="curl wttr.in/Essen"
|
||||
alias tvres="xrandr --output HDMI1 --transform 1.02,0,-20,0,1.02,-10,0,0,1"
|
||||
alias defaultres="xrandr --output HDMI1 --transform 1.00,0,0,0,1.00,0,0,0,1"
|
||||
alias zshconfig="emacsclient -nw ~/.zshrc; source ~/.zshrc;"
|
||||
alias notify="dunstify \"ping~\""
|
||||
alias ekill="pkill emacs; pkill emacsclient; ed"
|
||||
alias latexmk="latexmk -f -pdf -interaction=nonstopmode"
|
||||
alias picotik="picocom --b 115200 /dev/ttyUSB0"
|
||||
alias ls="eza"
|
||||
## git
|
||||
alias gps="git push soft --all"
|
||||
alias gras="add_soft_git"
|
||||
|
||||
# Theme
|
||||
ZSH_THEME="agnoster"
|
||||
@@ -79,17 +64,24 @@ plugins=(
|
||||
git
|
||||
history
|
||||
z
|
||||
zsh-eza
|
||||
)
|
||||
|
||||
randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;};
|
||||
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
|
||||
if [[ -z "$ZELLIJ" ]]; then
|
||||
if [[ "$ZELLIJ_AUTO_ATTACH" == "true" ]]; then
|
||||
zellij attach -c
|
||||
else
|
||||
zellij
|
||||
fi
|
||||
|
||||
if [[ "$ZELLIJ_AUTO_EXIT" == "true" ]]; then
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
# Source
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
add_soft_git() { git remote add soft ssh://git.aya01:/$1 }
|
||||
open_emacs() { emacsclient -c $1 & disown; };
|
||||
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
complete -o nospace -C /usr/bin/terraform terraform
|
||||
|
||||
# echo "rm -rf braincells/*"
|
||||
|
||||
Reference in New Issue
Block a user