update dot.profile
This commit is contained in:
parent
701362b178
commit
1e951f3360
1 changed files with 30 additions and 1 deletions
31
dot.profile
31
dot.profile
|
@ -1,4 +1,5 @@
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
|
source $HOME/.env # load secrets like API keys
|
||||||
|
|
||||||
export EDITOR=hx
|
export EDITOR=hx
|
||||||
export FREETYPE_PROPERTIES="truetype:interpreter-version=35 cff:darkening-parameters=500,300,1000,200,1500,100,2000,0 autofitter:warping=1"
|
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
|
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"* ]]
|
if [[ "$TTY" == "/dev/tty"* ]]
|
||||||
then
|
then
|
||||||
setfont drdos8x14
|
setfont drdos8x14
|
||||||
fi
|
fi
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
|
||||||
|
export CARGO_HOME=$HOME/.cargo
|
||||||
export PNPM_HOME="$HOME/.local/share/pnpm"
|
export PNPM_HOME="$HOME/.local/share/pnpm"
|
||||||
|
export DENO_INSTALL="$HOME/local/lib/deno"
|
||||||
|
export GOPATH="$HOME/pkg/go"
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads 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
|
[ -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
|
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"
|
TODO="$HOME/TODO/`date '+%Y%m%d'`.todo.txt"
|
||||||
if [ -f "$TODO" ]
|
if [ -f "$TODO" ]
|
||||||
then
|
then
|
||||||
bat $TODO
|
bat $TODO
|
||||||
fi
|
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
|
||||||
|
|
Loading…
Reference in a new issue