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'
|
||||
[ -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?"'
|
||||
|
|
|
@ -14,6 +14,7 @@ if [ -z "$PROFILE_LOADED" ] && [ -f ~/.profile ]; then
|
|||
fi
|
||||
|
||||
# Intelligently set $EDITOR
|
||||
if [ "${EDITOR:-}" = "" ] || [ "${EDITOR##*/}" = "nano" ]; then
|
||||
if command -v nvim > /dev/null;then
|
||||
export EDITOR=nvim
|
||||
elif command -v vim > /dev/null;then
|
||||
|
@ -21,6 +22,7 @@ elif command -v vim > /dev/null;then
|
|||
elif command -v vi > /dev/null;then
|
||||
export EDITOR=vi
|
||||
fi
|
||||
fi
|
||||
export SYSTEMD_EDITOR="$EDITOR"
|
||||
export VISUAL="$EDITOR"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue