Added fzf to bash profile

master
Cian Hatton 3 years ago
parent 63aa298e2f
commit 57f0785037

@ -1,8 +1,12 @@
export PATH="$PATH:/opt/homebrew/bin" export PATH="$PATH:/opt/homebrew/bin"
export PATH="$PATH:/usr/local/bin"
alias smb="git stash && git checkout main && git pull" alias smb="git stash && git checkout main && git pull"
alias mb="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() { function _branches() {
if [ -n "$1" ]; then if [ -n "$1" ]; then
echo "$1" echo "$1"
@ -112,6 +116,14 @@ function my_prs(){
gh pr list --author @me 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 # new_issue_branch creates an issue branch based off of a github issue
function new_issue_branch() { function new_issue_branch() {
local issueNumber=$1 local issueNumber=$1

@ -1,3 +1,7 @@
Host qnap Host qnap
HostName qnap HostName qnap
User cianhatton User cianhatton
Host snunmu
HostName snunmu
User cianhatton

@ -22,3 +22,8 @@ bind-key h split-window -v
# Easy config reload # Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded." 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}"

Loading…
Cancel
Save