--- a/bash_profile Thu Feb 01 08:33:56 2024 -0500
+++ b/bash_profile Fri Feb 02 15:00:52 2024 -0500
@@ -54,6 +54,10 @@
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
+function mcd {
+ mkdir "$1" && cd "$1"
+}
+
alias js='cd ~/scratch'
alias :q=exit
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/csv2tsv Fri Feb 02 15:00:52 2024 -0500
@@ -0,0 +1,20 @@
+#!/usr/bin/env python3
+
+import sys
+import csv
+
+def run_file(f):
+ w = csv.writer(sys.stdout, delimiter='\t')
+ for row in csv.reader(f):
+ w.writerow(row)
+
+def run(paths):
+ for path in paths:
+ if path == '-':
+ run_file(sys.stdin)
+ else:
+ with open(path) as f:
+ run_file(f)
+
+if __name__ == '__main__':
+ run(sys.argv[1:] or ['-'])
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/tsv2csv Fri Feb 02 15:00:52 2024 -0500
@@ -0,0 +1,20 @@
+#!/usr/bin/env python3
+
+import sys
+import csv
+
+def run_file(f):
+ w = csv.writer(sys.stdout)
+ for row in csv.reader(f, delimiter='\t'):
+ w.writerow(row)
+
+def run(paths):
+ for path in paths:
+ if path == '-':
+ run_file(sys.stdin)
+ else:
+ with open(path) as f:
+ run_file(f)
+
+if __name__ == '__main__':
+ run(sys.argv[1:] or ['-'])
--- a/fish/config.fish Thu Feb 01 08:33:56 2024 -0500
+++ b/fish/config.fish Fri Feb 02 15:00:52 2024 -0500
@@ -35,6 +35,10 @@
end
end
+function mcd --argument dir
+ mkdir "$dir"; and cd "$dir"
+end
+
alias sin singularity
alias sm snakemake
--- a/remote/bash_profile Thu Feb 01 08:33:56 2024 -0500
+++ b/remote/bash_profile Fri Feb 02 15:00:52 2024 -0500
@@ -42,6 +42,10 @@
history | grep "$@" | tac | f 2-
}
+function mcd {
+ mkdir "$1" && cd "$1"
+}
+
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
HOST_COLOR="$BLUE"
else
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/remote/bin/csv2tsv Fri Feb 02 15:00:52 2024 -0500
@@ -0,0 +1,1 @@
+../../bin/csv2tsv
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/remote/bin/csvconcat Fri Feb 02 15:00:52 2024 -0500
@@ -0,0 +1,1 @@
+../../bin/csvconcat
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/remote/bin/tsv2csv Fri Feb 02 15:00:52 2024 -0500
@@ -0,0 +1,1 @@
+../../bin/tsv2csv
\ No newline at end of file
--- a/stumpwmrc Thu Feb 01 08:33:56 2024 -0500
+++ b/stumpwmrc Fri Feb 02 15:00:52 2024 -0500
@@ -501,6 +501,10 @@
(defcommand clear-notifications () ()
(run-shell-command "dunstctl close-all"))
+(defcommand start-vm () ()
+ (echo "Starting VM.")
+ (run-shell-command "/home/sjl/vms/run"))
+
;;;; Terminal Fonts -----------------------------------------------------------
@@ -568,6 +572,9 @@
(defcommand terminal () ()
(run-shell-command (format nil "st -f 'Ubuntu Mono:size=~D'" *terminal-font-size*)))
+(defcommand terminal-apl () ()
+ (run-shell-command "st -f 'BQN386 Unicode:style=Regular:size=12'"))
+
(defcommand gcontrol () ()
(run-or-raise "gcontrol" '(:class "Gnome-control-center")))