diff --git a/README.md b/README.md new file mode 100644 index 0000000..43b9f1c --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# .files + +Collection of dotfiles. + +## Installation + +```bash +git clone https://github.com/cupcakearmy/dotfiles.git ~/.dotfiles +cd ~/.dotfiles +./install +``` diff --git a/files/fish/config.fish b/files/fish/config.fish index 9b23a79..58e4f60 100644 --- a/files/fish/config.fish +++ b/files/fish/config.fish @@ -3,8 +3,14 @@ set -g fish_user_paths "/usr/local/sbin" $fish_user_paths set -x PIPENV_VENV_IN_PROJECT true export GOPATH="$HOME/.go" -export GOROOT=(brew --prefix go)"/libexec" +if type -q $program + export GOROOT=(brew --prefix go)"/libexec" +end export PATH="$PATH:$GOPATH/bin:$GOROOT/bin:$HOME/.cargo/bin" # The next line updates PATH for the Google Cloud SDK. if [ -f '$HOME/Desktop/google-cloud-sdk/path.fish.inc' ]; . '$HOME/Desktop/google-cloud-sdk/path.fish.inc'; end + +# tabtab source for packages +# uninstall by removing these lines +[ -f ~/.config/tabtab/fish/__tabtab.fish ]; and . ~/.config/tabtab/fish/__tabtab.fish; or true diff --git a/files/tabtab/fish/__tabtab.fish b/files/tabtab/fish/__tabtab.fish new file mode 100644 index 0000000..4990a5c --- /dev/null +++ b/files/tabtab/fish/__tabtab.fish @@ -0,0 +1,4 @@ + +# tabtab source for pnpm package +# uninstall by removing these lines +[ -f ~/.config/tabtab/fish/pnpm.fish ]; and . ~/.config/tabtab/fish/pnpm.fish; or true diff --git a/files/tabtab/fish/pnpm.fish b/files/tabtab/fish/pnpm.fish new file mode 100644 index 0000000..2b6c322 --- /dev/null +++ b/files/tabtab/fish/pnpm.fish @@ -0,0 +1,22 @@ +###-begin-pnpm-completion-### +function _pnpm_completion + set cmd (commandline -o) + set cursor (commandline -C) + set words (count $cmd) + + set completions (eval env DEBUG=\"" \"" COMP_CWORD=\""$words\"" COMP_LINE=\""$cmd \"" COMP_POINT=\""$cursor\"" pnpm completion -- $cmd) + + if [ "$completions" = "__tabtab_complete_files__" ] + set -l matches (commandline -ct)* + if [ -n "$matches" ] + __fish_complete_path (commandline -ct) + end + else + for completion in $completions + echo -e $completion + end + end +end + +complete -f -d 'pnpm' -c pnpm -a "(_pnpm_completion)" +###-end-pnpm-completion-### diff --git a/files/vim/.gitignore b/files/vim/.gitignore index 4c618f5..3224c3c 100644 --- a/files/vim/.gitignore +++ b/files/vim/.gitignore @@ -1 +1,2 @@ undodir +plugged