fish config stuff

This commit is contained in:
LordMZTE 2021-04-13 01:06:56 +02:00
parent ef62d48055
commit 93015291ff
2 changed files with 42 additions and 14 deletions

View file

@ -5,8 +5,11 @@ fish_vi_key_bindings
alias ls="lsd" alias ls="lsd"
alias ll="ls -l" alias ll="ls -l"
alias la="ll -a" alias la="ll -a"
alias lt="la --tree" alias lt="ll --tree"
alias clip="xclip -sel clip" alias clip="xclip -sel clip"
alias nv="nvim"
alias nvide="rbg neovide --multiGrid"
function rbg function rbg
$argv &>/dev/null& $argv &>/dev/null&
end end
@ -16,6 +19,12 @@ function rbgd
disown disown
end end
function foreachdir
for file in (find $argv[1] -type f -print)
f=$file eval $argv[2..-1]
end
end
function !! function !!
eval $history[1] eval $history[1]
end end
@ -25,12 +34,26 @@ function mkdircd
cd $argv[1] cd $argv[1]
end end
function ifpresent
if which $argv[1] &> /dev/null
eval $argv[2..-1]
end
end
function todos
rg -i -H todo
end
# ENV # ENV
export CXX=clang++ export CXX=clang++
export EDITOR=nvim export EDITOR=nvim
export PATH="$PATH:$HOME/.cargo/bin:$HOME/.local/bin:/var/lib/snapd/snap/bin" export PATH="$PATH:$HOME/.cargo/bin:$HOME/.local/bin:/var/lib/snapd/snap/bin:$HOME/go/bin"
# initialization stuff
ifpresent starship 'starship init fish | source'
ifpresent zoxide 'zoxide init fish | source'
ifpresent cod 'cod init %self fish | source'
ifpresent navi 'navi widget fish | source'
ifpresent opam 'eval (opam env)'
starship init fish | source
zoxide init fish | source
cod init %self fish | source

View file

@ -1,12 +1,17 @@
{ {
"languageserver": { "languageserver": {
"haskell": { "haskell": {
"command": "haskell-language-server-wrapper", "command": "haskell-language-server-wrapper",
"args": ["--lsp"], "args": ["--lsp"],
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"], "rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
"filetypes": ["haskell", "lhaskell"] "filetypes": ["haskell", "lhaskell"]
} },
}, "ocaml-lsp": {
"java.home": "/usr/lib/jvm/java-11-graalvm" "command": "opam",
"args": ["config", "exec", "--", "ocamllsp"],
"filetypes": ["ocaml", "reason"]
}
},
"java.home": "/usr/lib/jvm/java-11-graalvm"
} }