snippets

Small snippets and stuff I did not know where to put

Set default path in rclone

Usually, I set up rclone to use SFTP. It works, but always ask for the path to destination folder, with no way to set a default path. A solution is to add an alias to your config file (default path ~/.config/rclone/rclone.conf), as shown hereunder.

[rclone_sftp]
type = sftp
host = docs.kntc.be
user = YOUR_SSH_USER
pass = HASHED_SSH_PASSWORD
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum

[docs.kntc.be]
type = alias
remote = rclone_sftp:DEFAULT/PATH/

Upload the website

To upload the website, I simply have to do :

rclone sync public/ docs.kntc.be:

Custom configs

Ghostty

# Themes and colors
theme = Gruvbox Dark Hard

# Custom commands
env = LANG=en_US.UTF-8
window-inherit-working-directory = false
tab-inherit-working-directory = true
split-inherit-working-directory = true

keybind = alt+h=goto_split:left
keybind = alt+l=goto_split:right
keybind = alt+k=goto_split:top
keybind = alt+j=goto_split:bottom
keybind = ctrl+shift+w=close_surface

Helix

theme = "everforest_dark"

[editor]
line-number = "relative"