Compare commits
4 commits
0a68add4da
...
bda5105914
Author | SHA1 | Date | |
---|---|---|---|
bda5105914 | |||
18868475d8 | |||
c4808f1654 | |||
0fafd74a05 |
3 changed files with 15 additions and 6 deletions
.config
6
.config/julia/startup.jl
Normal file
6
.config/julia/startup.jl
Normal file
|
@ -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)
|
|
@ -38,6 +38,7 @@ alias bc='bc -ql' # Make bc usable for fast math
|
||||||
alias ffmpeg='ffmpeg -hide_banner'
|
alias ffmpeg='ffmpeg -hide_banner'
|
||||||
[ -z "$VIMRUNTIME" ] &&
|
[ -z "$VIMRUNTIME" ] &&
|
||||||
alias glow='glow -p' # force Glow to preview with `less` if not in vim
|
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
|
# 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?"'
|
alias gs='echo "you don'\''t $(tput sitm)really$(tput sgr0) want ghost script now, do you?"'
|
||||||
|
|
|
@ -14,12 +14,14 @@ if [ -z "$PROFILE_LOADED" ] && [ -f ~/.profile ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Intelligently set $EDITOR
|
# Intelligently set $EDITOR
|
||||||
if command -v nvim > /dev/null;then
|
if [ "${EDITOR:-}" = "" ] || [ "${EDITOR##*/}" = "nano" ]; then
|
||||||
export EDITOR=nvim
|
if command -v nvim > /dev/null;then
|
||||||
elif command -v vim > /dev/null;then
|
export EDITOR=nvim
|
||||||
export EDITOR=vim
|
elif command -v vim > /dev/null;then
|
||||||
elif command -v vi > /dev/null;then
|
export EDITOR=vim
|
||||||
export EDITOR=vi
|
elif command -v vi > /dev/null;then
|
||||||
|
export EDITOR=vi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
export SYSTEMD_EDITOR="$EDITOR"
|
export SYSTEMD_EDITOR="$EDITOR"
|
||||||
export VISUAL="$EDITOR"
|
export VISUAL="$EDITOR"
|
||||||
|
|
Loading…
Add table
Reference in a new issue