2016-02-26 02:26:43 +01:00
|
|
|
source /etc/profile
|
2024-06-24 12:17:14 +02:00
|
|
|
source $HOME/.env # load secrets like API keys
|
2016-02-26 02:26:43 +01:00
|
|
|
|
2024-01-02 00:05:49 +01:00
|
|
|
export EDITOR=hx
|
2017-01-12 17:45:28 +01:00
|
|
|
export FREETYPE_PROPERTIES="truetype:interpreter-version=35 cff:darkening-parameters=500,300,1000,200,1500,100,2000,0 autofitter:warping=1"
|
|
|
|
export INFINALITY_FT_FILTER_PARAMS='10 35 40 35 10'
|
2020-08-11 21:04:08 +02:00
|
|
|
alias wttr="curl wttr.in"
|
2021-01-11 23:21:24 +01:00
|
|
|
alias ls="lsd"
|
|
|
|
alias l="lsd -lha"
|
|
|
|
alias ll="lsd -lh"
|
|
|
|
alias lt="lsd --tree"
|
2021-07-03 19:56:28 +02:00
|
|
|
alias pp="bat"
|
2021-01-11 23:21:24 +01:00
|
|
|
|
2019-09-03 19:47:27 +02:00
|
|
|
short_url () {
|
|
|
|
curl -F "shorten=$1" https://0x0.st
|
|
|
|
}
|
|
|
|
|
|
|
|
share_file () {
|
|
|
|
curl -F "file=@$1" https://0x0.st
|
|
|
|
}
|
2016-02-26 02:26:43 +01:00
|
|
|
|
2024-06-24 12:17:14 +02:00
|
|
|
# randomize arguments, needs to be attached at the end of the argument list (eg type mplayer *.mp3 and press ctrl+s)
|
|
|
|
bindkey -s '^S' '(oe:REPLY=\\$RANDOM:)'
|
|
|
|
|
2019-09-03 19:47:27 +02:00
|
|
|
if [[ "$TTY" == "/dev/tty"* ]]
|
|
|
|
then
|
2020-07-24 16:59:39 +02:00
|
|
|
setfont drdos8x14
|
2019-09-03 19:47:27 +02:00
|
|
|
fi
|
2024-06-24 12:17:14 +02:00
|
|
|
. "$HOME/.cargo/env"
|
2022-11-21 12:55:41 +01:00
|
|
|
|
2024-06-24 12:17:14 +02:00
|
|
|
export CARGO_HOME=$HOME/.cargo
|
2022-11-21 12:55:41 +01:00
|
|
|
export PNPM_HOME="$HOME/.local/share/pnpm"
|
2024-06-24 12:17:14 +02:00
|
|
|
export DENO_INSTALL="$HOME/local/lib/deno"
|
|
|
|
export GOPATH="$HOME/pkg/go"
|
|
|
|
|
2022-11-21 12:55:41 +01:00
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
|
|
|
2024-06-24 12:17:14 +02:00
|
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
|
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
|
|
|
|
export PATH=$HOME/.local/bin:$DENO_INSTALL/bin:$HOME/.yarn/bin:$PNPM_HOME:$GOPATH/bin:$CARGO_HOME/bin:$PATH
|
2022-11-21 12:55:41 +01:00
|
|
|
export MANPATH=$HOME/.local/share/man:/usr/share/man:/usr/local/share/man
|
2019-09-03 19:47:27 +02:00
|
|
|
|
2024-06-24 12:17:14 +02:00
|
|
|
TODAY="`date '+%Y-%m-%d'`"
|
2022-11-21 12:55:41 +01:00
|
|
|
TODO="$HOME/TODO/`date '+%Y%m%d'`.todo.txt"
|
|
|
|
if [ -f "$TODO" ]
|
2019-10-26 16:41:17 +02:00
|
|
|
then
|
2022-11-21 12:55:41 +01:00
|
|
|
bat $TODO
|
2019-10-26 16:41:17 +02:00
|
|
|
fi
|
2024-06-24 12:17:14 +02:00
|
|
|
|
|
|
|
ZELLIJ_AUTO_ATTACH=true
|
|
|
|
ZELLIJ_AUTO_EXIT=false
|
|
|
|
|
|
|
|
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
|