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:
parent
1e4968e1e1
commit
0ced8a28b1
3 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue