diff --git a/site-modules/core/files/oh-my-zsh/custom/fzf.zsh b/site-modules/core/files/oh-my-zsh/custom/fzf.zsh index d5942a1..f02266b 100644 --- a/site-modules/core/files/oh-my-zsh/custom/fzf.zsh +++ b/site-modules/core/files/oh-my-zsh/custom/fzf.zsh @@ -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 diff --git a/site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh b/site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh index daa615c..a15938e 100644 --- a/site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh +++ b/site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh @@ -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 diff --git a/site-modules/core/files/zshrc b/site-modules/core/files/zshrc index fd713b0..24db80f 100644 --- a/site-modules/core/files/zshrc +++ b/site-modules/core/files/zshrc @@ -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