diff --git a/.bash_profile b/.bash_profile index 2a50aad..1d26687 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,8 +1,12 @@ export PATH="$PATH:/opt/homebrew/bin" +export PATH="$PATH:/usr/local/bin" alias smb="git stash && git checkout main && git pull" alias mb="git checkout main && git pull" +# enable fzf with reverse search +[ -f ~/.fzf.bash ] && source ~/.fzf.bash + function _branches() { if [ -n "$1" ]; then echo "$1" @@ -112,6 +116,14 @@ function my_prs(){ gh pr list --author @me } +function view_my_prs(){ + pr_numbers="$(gh pr list --author @me --json number | jq '.[]|.number')" + for pr in $pr_numbers; do + gh pr view $pr --web + done +} + + # new_issue_branch creates an issue branch based off of a github issue function new_issue_branch() { local issueNumber=$1 diff --git a/.ssh_config b/.ssh_config index c41432a..fdef536 100644 --- a/.ssh_config +++ b/.ssh_config @@ -1,3 +1,7 @@ Host qnap HostName qnap User cianhatton + +Host snunmu + HostName snunmu + User cianhatton diff --git a/tmux.conf b/tmux.conf index 9e2f5bb..30259dc 100644 --- a/tmux.conf +++ b/tmux.conf @@ -22,3 +22,8 @@ bind-key h split-window -v # Easy config reload bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded." + +# Set new panes to open in current directory +bind c new-window -c "#{pane_current_path}" +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}"