Skip to content

jonathanpoelen/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIME type

find mime -type f -exec xdg-mime install {} \;
#update-mime-database ~/.local/usr/share/mime

or

sudo find mime -exec xdg-mime install {} \;
#sudo update-mime-database /usr/share/mime

X resources

Load a resource file, and merge with the current settings:

xrdb -merge ~/.Xresources

Less binding

lesskey -o ~/.less -<<EOF
#command
\e[7~ goto-line
\e[8~ goto-end
EOF

https://wiki.archlinux.org/index.php/Home_and_End_keys_not_working

KDE bold fonts does not work

Remove the Regular value in grep ^Font $HOME/.config/k*.

GTK overlay-scrollbar

gsettings set org.gnome.desktop.interface overlay-scrolling false

Ninja

NINJA_STATUS=$'\x1b[32m[%f/%t] \x1b[0m' CLICOLOR_FORCE= ninja .....

Check hard links

/!\ Update repo

a=($( stat -c='%h %n' $(<hardlinks) | sed '/^=1 /!d;s/^...//;t;d' )) &&
rm -- $=a &&
for f in $a ; do
  ln -P -- ~/$f $f
done

/!\ Update $HOME

a=($( stat -c='%h %n' $(<hardlinks) | sed '/^=1 /!d;s/^...//;t;d' )) &&
for f in $a ; do
  rm -- ~/$f && ln -P -- $f ~/$f
done

Zsh precompiled

Depends on zsh_scripts.

zsh -c "rm -f ~/projects/dotfiles/zsh_funcs/* ||:
ln -P ~/projects/dotfiles/zsh_functions/{def,defl,erd} ~/projects/zsh-scripts/{functions,widgets}/* ~/projects/dotfiles/zsh_funcs/
mv ~/projects/dotfiles/zsh_funcs/extract ~/projects/dotfiles/zsh_funcs/er

autoload zrecompile
zrecompile -p \
  -R ~/.zshrc -- \
  -M ${ZSH_COMPDUMP:-~/.zcompdump} -- \
  ~/.zshcompletions.zwc ~/.zshcompletions/_* -- \
  ~/projects/dotfiles/zsh_funcs.zwc ~/projects/dotfiles/zsh_funcs/*"