aboutsummaryrefslogtreecommitdiff
path: root/sqlitevi.fish
diff options
context:
space:
mode:
Diffstat (limited to 'sqlitevi.fish')
-rw-r--r--sqlitevi.fish4
1 files changed, 4 insertions, 0 deletions
diff --git a/sqlitevi.fish b/sqlitevi.fish
new file mode 100644
index 0000000..964e4f6
--- /dev/null
+++ b/sqlitevi.fish
@@ -0,0 +1,4 @@
+function sqlitevi
+ mv "$argv" "$argv.bak"
+ sqlite3 "$argv.bak" .dump | $EDITOR | sqlite3 "$argv"
+end