mirror of
https://github.com/osmarks/random-stuff
synced 2025-09-06 12:27:56 +00:00
yet more dotfiles
This commit is contained in:
20
dotfiles/wezterm.lua
Normal file
20
dotfiles/wezterm.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
local wezterm = require 'wezterm'
|
||||
|
||||
local config = {}
|
||||
|
||||
config.ssh_domains = {
|
||||
{
|
||||
name = 'protagonism',
|
||||
remote_address = 'protagonism'
|
||||
},
|
||||
}
|
||||
config.unix_domains = {
|
||||
{
|
||||
name = 'unix',
|
||||
}
|
||||
}
|
||||
|
||||
config.font = wezterm.font "Fira Code"
|
||||
config.font_size = 10
|
||||
|
||||
return config
|
@@ -1,6 +1,6 @@
|
||||
import sqlite3
|
||||
import sqlite3, sys
|
||||
|
||||
longterm = sqlite3.connect("/data/archive/lthist.sqlite3")
|
||||
longterm = sqlite3.connect(sys.argv[1])
|
||||
longterm.executescript(f"""
|
||||
CREATE TABLE IF NOT EXISTS places (
|
||||
guid TEXT PRIMARY KEY,
|
||||
@@ -33,4 +33,4 @@ ON CONFLICT DO UPDATE SET lastModified = excluded.lastModified, title = excluded
|
||||
# TODO: possibly wrong with new profile, might need to increment historyvisits or something
|
||||
longterm.execute("INSERT INTO historyvisits SELECT (moz_historyvisits.id || '/' || visit_date), moz_places.guid, visit_date, visit_type FROM moz_historyvisits JOIN moz_places ON moz_places.id = moz_historyvisits.place_id ON CONFLICT DO NOTHING;")
|
||||
|
||||
longterm.commit()
|
||||
longterm.commit()
|
||||
|
Reference in New Issue
Block a user