update(fish): update configuration to work with new repo organization
This commit is contained in:
parent
c087cf8d7a
commit
a347469e36
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue