add repos function to chdir to repos dir

This commit is contained in:
randomuser 2022-06-26 19:01:06 -05:00
parent 6822520bac
commit 056f0f4857
1 changed files with 10 additions and 0 deletions

View File

@ -10,3 +10,13 @@ alias ssh="ssh -F $HOME/.config/ssh/config"
# remind alias # remind alias
alias sched="nvim $DOTREMINDERS" alias sched="nvim $DOTREMINDERS"
alias cal="rem -cl" alias cal="rem -cl"
PS1="\w\$ "
# repos func
repos() {
sel="$(ls ~/git | fzy | awk '{print "/home/usr/git/"$1}')"
[ "$?" -eq 1 ] && exit
cd "$sel"
}