Skip to content

Commit

Permalink
add lazygit fn
Browse files Browse the repository at this point in the history
  • Loading branch information
adelowo committed Jul 14, 2023
1 parent fe0ea5a commit d2a27a6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ fi

source $HOME/.cargo/env

lg()
{
export LAZYGIT_NEW_DIR_FILE=~/.lazygit/newdir

lazygit "$@"

if [ -f $LAZYGIT_NEW_DIR_FILE ]; then
cd "$(cat $LAZYGIT_NEW_DIR_FILE)"
rm -f $LAZYGIT_NEW_DIR_FILE > /dev/null
fi
}


## Give this an open tcp port and it would return it's PID
## I usually use this to kill processes
Expand Down

0 comments on commit d2a27a6

Please sign in to comment.