Updates git functions, vimrc, etc.
This commit is contained in:
parent
17f7e0c453
commit
9c8ffdb504
8 changed files with 62 additions and 18 deletions
|
|
@ -1,12 +1,12 @@
|
|||
# fuzzily-find-file
|
||||
function wgff {
|
||||
echo $(find . -type f | fzf)
|
||||
echo $(find . -type f | fzf-tmux)
|
||||
}
|
||||
|
||||
|
||||
# fuzzily-find-branch
|
||||
function wgfb {
|
||||
echo $(git branch -a | fzf)
|
||||
echo $(git branch -a | fzf-tmux)
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -28,13 +28,13 @@ function wspcheck {
|
|||
|
||||
# fuzzily search through dirs stack
|
||||
function wfd {
|
||||
dir=$(dirname $(fzf)) && pushd "$dir" >/dev/null
|
||||
dir=$(dirname $(fzf-tmux)) && pushd "$dir" >/dev/null
|
||||
}
|
||||
|
||||
|
||||
# pushd into a directory on your dirs stack
|
||||
function wpushd {
|
||||
dir="$(dirs | tr ' ' '\n' | fzf)" && pushd "$dir"
|
||||
dir="$(dirs | tr ' ' '\n' | fzf-tmux)" && pushd "$dir"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue