2019-03-11 23:59:49 +01:00
|
|
|
# Paths
|
2020-05-13 05:20:44 +02:00
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
2023-01-26 15:07:20 +01:00
|
|
|
export PATH="$PATH:$HOME/.go/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools:$HOME/.emacs.d/bin"
|
2019-12-04 01:32:36 +01:00
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
2020-05-22 01:39:09 +02:00
|
|
|
export PenTestTools=$HOME/Local/PenTesting/
|
|
|
|
export CTF=$HOME/Documents/CTF/
|
2020-09-19 13:49:26 +02:00
|
|
|
export WORKSPACE=$HOME/workspace_l
|
|
|
|
export ZSHRC="$HOME/.zshrc"
|
2020-11-12 18:20:18 +01:00
|
|
|
export VISUAL="emacsclient -t"
|
2022-12-27 22:15:56 +01:00
|
|
|
export EDITOR="emacsclient -t"
|
|
|
|
|
2018-08-29 21:22:24 +02:00
|
|
|
|
2021-05-29 21:46:59 +02:00
|
|
|
# History
|
|
|
|
export HISTSIZE=10000000
|
|
|
|
export SAVEHIST=10000000
|
|
|
|
export HISTTIMEFORMAT="[%F %T] "
|
|
|
|
setopt EXTENDED_HISTORY
|
|
|
|
setopt HIST_FIND_NO_DUPS
|
|
|
|
|
2018-02-08 14:55:54 +01:00
|
|
|
# Alias
|
2018-03-15 11:32:26 +01:00
|
|
|
alias q="exit"
|
2020-05-13 05:44:16 +02:00
|
|
|
alias b="byobu"
|
2018-04-29 23:13:10 +02:00
|
|
|
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
|
2019-03-11 23:59:49 +01:00
|
|
|
alias xsel='xsel -ib'
|
2020-05-13 05:20:44 +02:00
|
|
|
alias msfconsole="msfconsole -x \"db_connect metasploit@msf\""
|
2020-09-19 13:49:26 +02:00
|
|
|
alias nmap="nmap -T5 --min-parallelism 100 -Pn"
|
2020-11-12 18:20:18 +01:00
|
|
|
alias ed="\emacs --daemon"
|
2023-01-26 15:07:20 +01:00
|
|
|
alias e="open_emacs"
|
2021-10-20 14:14:29 +02:00
|
|
|
alias df="df -h"
|
|
|
|
alias picpaste="xclip -selection clipboard -t image/png -o"
|
2022-01-24 05:01:04 +01:00
|
|
|
alias eledger="e ~/Documents/Finanzen/Ledger/MyBudget.ledger"
|
|
|
|
alias sshconfig="e ~/.ssh/config"
|
|
|
|
alias econfig="e ~/.emacs.d/config.org"
|
2022-09-07 22:00:00 +02:00
|
|
|
alias wttr="curl wttr.in/Essen"
|
|
|
|
alias tvres="xrandr --output HDMI1 --transform 1.02,0,-20,0,1.02,-10,0,0,1"
|
2022-12-27 22:15:56 +01:00
|
|
|
alias defaultres="xrandr --output HDMI1 --transform 1.00,0,0,0,1.00,0,0,0,1"
|
2023-01-26 15:07:20 +01:00
|
|
|
alias zshconfig="e ~/.zshrc; source ~/.zshrc;"
|
2022-12-27 22:15:56 +01:00
|
|
|
alias notify="dunstify \"ping~\""
|
2023-01-26 15:07:20 +01:00
|
|
|
alias ekill="e -e \"(kill-emacs)\"; ed"
|
2022-12-27 22:15:56 +01:00
|
|
|
alias latexmk="latexmk -f -pdf -interaction=nonstopmode"
|
|
|
|
alias picotik="picocom --b 115200 /dev/ttyUSB0"
|
2018-09-12 22:42:41 +02:00
|
|
|
|
2019-03-11 23:59:49 +01:00
|
|
|
# Theme
|
|
|
|
ZSH_THEME="agnoster"
|
2018-02-08 14:55:54 +01:00
|
|
|
|
2019-03-11 23:59:49 +01:00
|
|
|
# Plugins
|
|
|
|
plugins=(
|
|
|
|
git
|
|
|
|
history
|
2021-05-29 21:46:59 +02:00
|
|
|
z
|
2019-03-11 23:59:49 +01:00
|
|
|
)
|
2018-10-05 21:21:11 +02:00
|
|
|
|
2020-01-30 15:50:41 +01:00
|
|
|
randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;};
|
|
|
|
|
2019-03-11 23:59:49 +01:00
|
|
|
# Source
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
2022-09-07 22:00:00 +02:00
|
|
|
|
2023-01-26 15:07:20 +01:00
|
|
|
open_emacs() { emacsclient -c $1 & disown; };
|