From 1e951f336001cb3a427fef0250b1b54db466b21b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20K=C3=B6hring?= Date: Mon, 24 Jun 2024 12:17:14 +0200 Subject: [PATCH] update dot.profile --- dot.profile | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/dot.profile b/dot.profile index 6c5ae84..ec8ff84 100644 --- a/dot.profile +++ b/dot.profile @@ -1,4 +1,5 @@ source /etc/profile +source $HOME/.env # load secrets like API keys export EDITOR=hx export FREETYPE_PROPERTIES="truetype:interpreter-version=35 cff:darkening-parameters=500,300,1000,200,1500,100,2000,0 autofitter:warping=1" @@ -18,21 +19,49 @@ share_file () { curl -F "file=@$1" https://0x0.st } +# 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:)' + if [[ "$TTY" == "/dev/tty"* ]] then setfont drdos8x14 fi +. "$HOME/.cargo/env" +export CARGO_HOME=$HOME/.cargo export PNPM_HOME="$HOME/.local/share/pnpm" +export DENO_INSTALL="$HOME/local/lib/deno" +export GOPATH="$HOME/pkg/go" + 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 -export PATH=$HOME/.local/bin:$PATH +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 export MANPATH=$HOME/.local/share/man:/usr/share/man:/usr/local/share/man +TODAY="`date '+%Y-%m-%d'`" TODO="$HOME/TODO/`date '+%Y%m%d'`.todo.txt" if [ -f "$TODO" ] then bat $TODO fi + +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