Skip to content

Commit

Permalink
Configure fish
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmorganson committed Nov 7, 2024
1 parent 35022d3 commit 3f90cd1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home/dot_config/fish/config.fish.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ output (print .chezmoi.homeDir "/.local/bin/als") "init" "fish" }}

{{ output "pkgx" "starship" "init" "fish" }}

set --universal fish_greeting
set --global fish_key_bindings fish_vi_key_bindings
9 changes: 9 additions & 0 deletions home/dot_config/fish/env.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
for line in (sh -c "source ~/.profile && env" | grep '=')
set --local env (string split '=' $line)
set --local name $env[1]
set --local value $env[2]

if not contains -- $name PWD SHLVL _
set -x $name $value
end
end

0 comments on commit 3f90cd1

Please sign in to comment.