From 0fafd74a05ed58f26a9a3f1f3b9a78981acae6db Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 9 Sep 2024 02:15:36 -0700 Subject: [PATCH 1/3] add julia startup.jl --- .config/julia/startup.jl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .config/julia/startup.jl diff --git a/.config/julia/startup.jl b/.config/julia/startup.jl new file mode 100644 index 0000000..dac2f62 --- /dev/null +++ b/.config/julia/startup.jl @@ -0,0 +1,6 @@ +using OhMyREPL +using Pluto +using Symbolics +using Unitful +τ = 2*π +pluto_custom() = Pluto.run(;port=8080, host="0.0.0.0", auto_reload_from_file=true, require_secret_for_access=false, warn_about_untrusted_code=false) From 18868475d8240d935b2b974449941d8c226d0aec Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 9 Sep 2024 02:44:30 -0700 Subject: [PATCH 2/3] add juliai (interactive) alias --- .config/shell/aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/shell/aliases b/.config/shell/aliases index 57398ff..4c2fd54 100644 --- a/.config/shell/aliases +++ b/.config/shell/aliases @@ -38,6 +38,7 @@ alias bc='bc -ql' # Make bc usable for fast math alias ffmpeg='ffmpeg -hide_banner' [ -z "$VIMRUNTIME" ] && alias glow='glow -p' # force Glow to preview with `less` if not in vim +alias juliai='julia -i ${XDG_CONFIG_HOME:-"$HOME/.config"}/julia/startup.jl' # I hate it when I get ghost script instead of git status alias gs='echo "you don'\''t $(tput sitm)really$(tput sgr0) want ghost script now, do you?"' From bda5105914f1d3b21d4600824c2ad112dd4cb6a4 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 9 Sep 2024 02:45:23 -0700 Subject: [PATCH 3/3] even more intelegently set EDITOR --- .config/shell/env | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.config/shell/env b/.config/shell/env index 73f6d14..3fb5bf1 100644 --- a/.config/shell/env +++ b/.config/shell/env @@ -14,12 +14,14 @@ if [ -z "$PROFILE_LOADED" ] && [ -f ~/.profile ]; then fi # Intelligently set $EDITOR -if command -v nvim > /dev/null;then - export EDITOR=nvim -elif command -v vim > /dev/null;then - export EDITOR=vim -elif command -v vi > /dev/null;then - export EDITOR=vi +if [ "${EDITOR:-}" = "" ] || [ "${EDITOR##*/}" = "nano" ]; then + if command -v nvim > /dev/null;then + export EDITOR=nvim + elif command -v vim > /dev/null;then + export EDITOR=vim + elif command -v vi > /dev/null;then + export EDITOR=vi + fi fi export SYSTEMD_EDITOR="$EDITOR" export VISUAL="$EDITOR"