homes/common/.config/ion/initrc

79 lines
32 KiB
Text
Raw Normal View History

2023-10-18 02:50:18 +02:00
#!/usr/bin/env ion
export COLORFGBG = "default;default"
export VISUAL = "nvim"
export EDITOR = "lvim"
export PAGER = "nvimpager"
export BROWSER = "elinks"
export PATH = $join([~/.local/bin ~/.cargo/bin ~/go/bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /usr/bin /bin /usr/games] ":")
export NOTMUCH_CONFIG = ~/.config/notmuch/notmuch-config
export KEYRING_PROPERTY_SCHEME = KeePassXC
export LS_COLORS = "lc=:rc=:ec=:cl=:rs=:mh=:ca=:bd=🖴 :cd= :di= :do=󰠚 :ex= :fi=󰡯 :ln=󰌹 :mi= :no=:or=󰌺 :ow=󱇧 :pi=󰟥 :sg= :so=󱄈 :st= 󱍥 :su= :tw= 󱍬 :*.7z= :*.CramFS= :*.Z= :*.ace= :*.alz= :*.apfs= :*.ar= :*.arc= :*.arj= :*.bz= :*.bz2= :*.bzip2= :*.cab= :*.chm= :*.cpio= :*.dmg= :*.dz= :*.ear= :*.ext= :*.fat= :*.gpt= :*.gta= :*.gtar= :*.gtz= :*.gz= :*.gzip= :*.hfs= :*.ihex= :*.iso= :*.jar= :*.lha= :*.lrz= :*.lz= :*.lz4= :*.lzh= :*.lzma= :*.lzo= :*.lzx= :*.mbr= :*.msi= :*.nsis= :*.ntfs= :*.qcow2= :*.rar= :*.rz= :*.sar= :*.squashfs= :*.swm= :*.t7z= :*.tar= :*.taz= :*.tbz= :*.tbz2= :*.tlz= :*.txz= :*.tz= :*.tzo= :*.tzst= :*.udf= :*.uefi= :*.vdi= :*.vhd= :*.vhdx= :*.vmdk= :*.war= :*.wim= :*.xar= :*.xpi= :*.xz= :*.z= :*.zip= :*.zoo= :*.zst= :*.726=󰝚 :*.AMR=󰝚 :*.AWB=󰝚 :*.QCP=󰝚 :*.aa3=󰝚 :*.aac=󰝚 :*.aal=󰝚 :*.ac3=󰝚 :*.acn=󰝚 :*.adts=󰝚 :*.aif=󰝚 :*.aifc=󰝚 :*.aiff=󰝚 :*.amr=󰝚 :*.ass=󰝚 :*.at3=󰝚 :*.atx=󰝚 :*.au=󰝚 :*.awb=󰝚 :*.axa=󰝚 :*.csd=󰝚 :*.dls=󰝚 :*.dts=󰝚 :*.dtshd=󰝚 :*.ecelp4800=󰝚 :*.ecelp7470=󰝚 :*.ecelp9600=󰝚 :*.enw=󰝚 :*.eol=󰝚 :*.evb=󰝚 :*.evc=󰝚 :*.evw=󰝚 :*.flac=󰝚 :*.gsm=󰝚 :*.hmf=󰝚 :*.hvd=󰝚 :*.hvp=󰝚 :*.hvs=󰝚 :*.kar=󰝚
alias diff = "colordiff"
alias gitci = "git commit -S"
alias gitcia = "git commit -Sa"
alias gitco = "git checkout"
alias gitdiff = "git diff"
alias gitgrep = "git grep"
alias gitlog = "git log --name-status"
alias gitlstags = "git describe --tags"
alias gittag = "git tag -a"
alias gittree = "git log --graph"
alias gitw = "git instaweb --httpd=webrick"
alias l = "ls --color -pa"
alias less = "nvimpager"
alias lg = "lazygit"
alias ll = "ls --color -pla"
alias ls = "ls --color -p"
alias lzd = "lazydocker"
alias make = "colormake"
alias mbsync = "mbsync -c ~/.config/mbsync/mbsyncrc"
alias more = "nvimpager"
alias tig = "TERM=tmux-256color tig"
alias txor = "tmuxinator"
alias vim = "lvim -p"
alias vimdiff = "lvim -d -o"
alias gitst="git status | more"
alias gitci="git commit -S"
alias gitcia='git commit -Sa'
alias gitco="git checkout"
alias gitdiff='git diff'
alias gitgrep='git grep'
alias gitlog='git log --name-status'
alias gittree='git log --graph'
alias gitlstags='git describe --tags'
alias gittag='git tag -a'
alias gitw='git instaweb --httpd=webrick'
alias gitpull='git pull --stat --progress && git submodule update'
alias gitpr='git pull --stat --progress --rebase && git submodule update'
alias gitprst='git stash && git pull --stat --progress --rebase && git submodule update && git stash apply'
alias gitprp='git pull --stat --progress --rebase && git submodule update && git push'
alias gitprst='git stash && git pull --stat --progress --rebase && git submodule update && git stash apply && git push'
alias pip_upgrade = "pip freeze --user | cut -d'=' -f1 | xargs -n1 pip install -U --user"
alias pip_upgrade_venv = "pip freeze | cut -d'=' -f1 | xargs -n1 pip install -U"
if exists -f ~/.config/ion/init-desktop
source ~/.config/ion/init-desktop
end
if exists -f ~/.config/ion/init-private
source ~/.config/ion/init-private
end
if exists -f ~/.config/ion/init-root
source ~/.config/ion/init-root
end
export VI_NORMAL = "N"
export VI_INSERT = "I"
keybindings vi
eval $(starship init ion)
json-fortune