updates dotfiles

This commit is contained in:
Norman Köhring 2022-11-21 12:55:41 +01:00
parent 2add2a8638
commit 9fdf6ed4a0
2 changed files with 15 additions and 32 deletions

View file

@ -1,43 +1,15 @@
source /etc/profile source /etc/profile
export EDITOR=kak export EDITOR=kak
export GOPATH=$HOME/src/go
export CARGO_HOME=$HOME/.cargo
export PATH=$HOME/.local/bin:$HOME/.yarn/bin:$HOME/.local/share/npm-global/bin:$GOPATH/bin:$CARGO_HOME/bin:$HOME/.gem/ruby/2.7.0/bin:$PATH
export MANPATH=$HOME/.local/share/man:/usr/share/man:/usr/local/share/man
export _JAVA_AWT_WM_NONREPARENTING=1
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"
export INFINALITY_FT_FILTER_PARAMS='10 35 40 35 10' export INFINALITY_FT_FILTER_PARAMS='10 35 40 35 10'
export LD_LIBRARY_PATH=$HOME/.local/lib:$HOME/.local/lib/haxe:/lib
alias xi="sudo xbps-install"
alias xq="xbps-query -Rs"
alias xqi="xbps-query -RS"
alias xql="xbps-query -s"
alias xqf="xbps-query -f"
alias xqo="xbps-query -o"
alias xqre="xbps-query -R --regex -s"
alias howto="howdoi -c"
alias icat="kitty +kitten icat"
alias wttr="curl wttr.in" alias wttr="curl wttr.in"
alias df="duf"
alias du="dust"
alias md="glow -p"
alias ls="lsd" alias ls="lsd"
alias l="lsd -lha" alias l="lsd -lha"
alias ll="lsd -lh" alias ll="lsd -lh"
alias lt="lsd --tree" alias lt="lsd --tree"
alias pp="bat" alias pp="bat"
# twtxt
alias ttt="txtnish tweet"
alias ttl="txtnish timeline"
alias ttf="txtnish follow"
alias ttu="txtnish unfollow"
alias ttr="txtnish reply"
short_url () { short_url () {
curl -F "shorten=$1" https://0x0.st curl -F "shorten=$1" https://0x0.st
} }
@ -50,8 +22,19 @@ if [[ "$TTY" == "/dev/tty"* ]]
then then
setfont drdos8x14 setfont drdos8x14
fi fi
. "$HOME/.cargo/env"
if [ "$TTY" = /dev/tty1 -a $USER != root -a ! -e /tmp/.X0-lock ] export CARGO_HOME=$HOME/.cargo
export PNPM_HOME="$HOME/.local/share/pnpm"
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:$HOME/.yarn/bin:$PNPM_HOME:$GOPATH/bin:$CARGO_HOME/bin:$PATH
export MANPATH=$HOME/.local/share/man:/usr/share/man:/usr/local/share/man
TODO="$HOME/TODO/`date '+%Y%m%d'`.todo.txt"
if [ -f "$TODO" ]
then then
startx && clear && exit bat $TODO
fi fi

View file

@ -1,5 +1,5 @@
bindkey -v bindkey -v
source ~/src/pkg/zgen/zgen.zsh source ~/pkg/zgen/zgen.zsh
source ~/.zsh/kitty.compl.zsh source ~/.zsh/kitty.compl.zsh
if ! zgen saved; then if ! zgen saved; then
@ -26,7 +26,7 @@ ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
ZSH_HIGHLIGHT_PATTERNS+=('rm -fr*' 'fg=white,bold,bg=red') ZSH_HIGHLIGHT_PATTERNS+=('rm -fr*' 'fg=white,bold,bg=red')
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf*' 'fg=white,bold,bg=red') ZSH_HIGHLIGHT_PATTERNS+=('rm -rf*' 'fg=white,bold,bg=red')
PROJECT_PATHS=(~/src/wunderdog ~/src/koehr ~/src/pkg/) PROJECT_PATHS=(~/src/Spenoki ~/src/koehr ~/src/pkg/)
# The next line updates PATH for the Google Cloud SDK. # The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/nk/src/pkg/google-cloud-sdk/path.zsh.inc' ]; then . '/home/nk/src/pkg/google-cloud-sdk/path.zsh.inc'; fi if [ -f '/home/nk/src/pkg/google-cloud-sdk/path.zsh.inc' ]; then . '/home/nk/src/pkg/google-cloud-sdk/path.zsh.inc'; fi