refactor(core): update code structure

This is the big re structure to all of the projects. I have decided to
go with the `GOPATH` format so all of the code is in one place and
organised inherently by code host / group / project
This commit is contained in:
Ade Attwood 2021-03-16 20:22:26 +00:00
parent 1e4968e1e1
commit 0ced8a28b1
3 changed files with 10 additions and 5 deletions

View file

@ -13,6 +13,12 @@
alias fe="e \$(FZF_DEFAULT_COMMAND=\"fd -t f\" fzf --layout=reverse --preview 'bat --style=numbers ---color=always {}')"
alias fte="te \$(FZF_DEFAULT_COMMAND=\"fd -t f\" fzf --layout=reverse --preview 'bat --style=numbers ---color=always {}')"
#
# cd in to a porject directory
#
fp() {
cd ~/Code/src/$(cd ~/Code/src && FZF_DEFAULT_COMMAND="fd -t d --exact-depth 3" fzf --layout=reverse --preview 'bat --style=numbers ---color=always {}/README.md')
}
#
# Searching the git history with diff and show preview support. When selecting a
# commit `git show` output is displayed and `CTRL-d` the `git diff` output is

View file

@ -20,6 +20,5 @@ mutt_scripts=~/.mutt/scripts
#
# Zsh hash
#
hash -d s=~/sites
hash -d df=~/.dotfiles
hash -d d=~/development
hash -d code=~/Code
hash -d s=~/Code/src

View file

@ -76,8 +76,8 @@ export PATH=$PATH:$HOME/.config/composer/vendor/bin
#
# Set up golang
#
if [ -d $HOME/go ]; then
export GOPATH=$HOME/go
if [ -d $HOME/Code ]; then
export GOPATH=$HOME/Code
export PATH=$PATH:$GOPATH/bin
fi