Skip to content

Commit

Permalink
Update .zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulwahaab710 authored Aug 25, 2017
1 parent ac14ad4 commit 3cf52c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ alias stash='git stash'
alias pop='git stash pop'
alias checkout='git checkout'
alias prebase='git pull rebase'
alias git-nvim='git status -s -u | fzf -m --ansi --preview-window "right:33%" --preview "echo {} | cut -d' ' -f 3 | xargs head -$LINES" | cut -d' ' -f 3 | xargs vim'
# alias git-nvim='git status -s -u | fzf -m --ansi --preview-window "right:33%" --preview "echo {} | cut -d' ' -f 3 | xargs head -$LINES" | cut -d' ' -f 3 | xargs vim'
alias rtest='bundle exec rspec'
alias s='fast_git_branch_select'
alias ts='fast_tmux_session_select'
Expand Down Expand Up @@ -61,3 +61,7 @@ function fast_tmux_session_select {
SESSION_NAME="$(echo -e "${session}" | sed -e 's/^[[:space:]]*//' | sed -e 's/: .*//')"
tmux attach -t $SESSION_NAME
}

function git-nvim {
git status -s -u | fzf -m --ansi --preview-window "right:33%" --preview "echo {} | cut -d' ' -f 3 | xargs head -$LINES" | cut -d' ' -f 3 | xargs nvim
}

0 comments on commit 3cf52c3

Please sign in to comment.