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) 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?"' 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"