update(fish): update configuration to work with new repo organization

This commit is contained in:
juancwu 2022-12-20 02:33:54 -05:00
commit a347469e36
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -38,8 +38,8 @@ if type -q git
alias gc "git commit"
alias gs "git status"
alias gp "git push"
alias gP "git pull --rebase"
alias ga "git add"
alias gx "git stash"
end
# allow local config overwrite

View file

@ -16,9 +16,11 @@ end
function peco_change_directory
begin
echo $HOME/.config
ghq list -p
# ghq list -p # gh cli replaced this, so it is no longer needed
# list local repositories
find $HOME/ghq -mindepth 2 -maxdepth 2 -type d
# home directory
ls -ad $HOME/* | grep -v \.git
ls -ad $HOME/*/ | grep -v \.git
# current directory
ls -ad */ | perl -pe "s#^#$PWD/#" | grep -v \.git
end | sed -e 's/\/$//' | awk '!a[$0]++' | _peco_change_directory $argv