Skip to content

Commit

Permalink
🆙
Browse files Browse the repository at this point in the history
  • Loading branch information
otofune committed Jul 30, 2024
1 parent 20f2af0 commit 24c6b79
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
17 changes: 13 additions & 4 deletions platform-all/replacement/.config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ ssh-add -A > /dev/null 2>&1

set -x GOPATH ~/projects
set -x PATH $GOPATH/bin $PATH
direnv hook fish | source
if which direnv > /dev/null
# backward compatibility
direnv hook fish | source
end

set -x PATH $HOME/bin $PATH

Expand All @@ -18,9 +21,14 @@ set -x PATH $HOME/.cargo/bin $PATH
if which anyenv > /dev/null
# backward compatibility
anyenv init - | source
else
end
if which asdf > /dev/null
# backward compatibility
source ~/.asdf/asdf.fish
end
if which mise > /dev/null
mise activate fish | source
end

# typo
abbr --add gti git
Expand Down Expand Up @@ -51,5 +59,6 @@ source ~/.config/fish/aliases.fish
# opam configuration
# https://github.com/ocaml/opam/pull/4736
#source /Users/owner/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
eval (opam env)

if which opam > /dev/null
eval (opam env)
end
10 changes: 10 additions & 0 deletions platform-all/replacement/.config/fish/functions/zed.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# (c) otofune

function zed --wraps=zed
set length (count $argv)
if test $length -eq 0
select_ghq_directory_pipe_command zed
return $status
end
command code $argv
end
3 changes: 3 additions & 0 deletions platform-all/replacement/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cehckout = checkout

[core]
excludesfile = ~/.gitignore-global
quotepath = false

[ghq]
root = ~/projects/src
Expand All @@ -24,3 +25,5 @@ root = ~/projects/src
default = current
[pull]
ff = only
[grep]
lineNumber = true
2 changes: 2 additions & 0 deletions platform-all/replacement/.gitignore-global
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
.*-versions
.DS_Store
.wakatime-project
.obsidian
.zed
1 change: 0 additions & 1 deletion platform-darwin/replacement/.config/fish/environment.fish
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.fish.inc' ]; . '/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.fish.inc'; end
`
set -x PATH /opt/homebrew/opt/openjdk/bin $PATH

0 comments on commit 24c6b79

Please sign in to comment.