Compare commits
No commits in common. "cb333b010f80840a3c42cbcf437ab8c8f1e1c502" and "c455433bb81048b7eeeb8af342540125eef891a1" have entirely different histories.
cb333b010f
...
c455433bb8
|
@ -1,9 +1,8 @@
|
||||||
# Open file/dir in GUI.
|
# Open file/dir in GUI.
|
||||||
# Usage: open <FILE>
|
# Usage: o <FILE>
|
||||||
function open() {
|
function o() {
|
||||||
xdg-open "${@}"
|
xdg-open "${@}"
|
||||||
}
|
}
|
||||||
alias o="open"
|
|
||||||
|
|
||||||
# Play media file from CLI. All files by default.
|
# Play media file from CLI. All files by default.
|
||||||
# Usage: play [FILE]
|
# Usage: play [FILE]
|
||||||
|
|
|
@ -178,16 +178,6 @@ function gv() {
|
||||||
git rev-list HEAD --count
|
git rev-list HEAD --count
|
||||||
}
|
}
|
||||||
|
|
||||||
# Open the remote web url in default browser.
|
|
||||||
# Usage: gw [REMOTE]
|
|
||||||
function gw() {
|
|
||||||
local remote="${1}"
|
|
||||||
[[ "${remote}" = "" ]] && remote="$(git remote | head -n1)"
|
|
||||||
|
|
||||||
local url="$(git remote get-url ${remote})"
|
|
||||||
open "${url}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Show current branch.
|
# Show current branch.
|
||||||
function _git_current_branch() {
|
function _git_current_branch() {
|
||||||
git branch --show-current 2> /dev/null
|
git branch --show-current 2> /dev/null
|
||||||
|
@ -221,7 +211,7 @@ function _git_is_dotfiles() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Autocomplete.
|
# autocomplete.
|
||||||
_completion_loader git &> /dev/null
|
_completion_loader git &> /dev/null
|
||||||
__git_complete gps _git_push &> /dev/null
|
__git_complete gps _git_push &> /dev/null
|
||||||
__git_complete gpsf _git_push &> /dev/null
|
__git_complete gpsf _git_push &> /dev/null
|
||||||
|
@ -240,7 +230,6 @@ __git_complete gf _git_fetch &> /dev/null
|
||||||
__git_complete gt _git_tag &> /dev/null
|
__git_complete gt _git_tag &> /dev/null
|
||||||
__git_complete gp _git_apply &> /dev/null
|
__git_complete gp _git_apply &> /dev/null
|
||||||
__git_complete ga _git_add &> /dev/null
|
__git_complete ga _git_add &> /dev/null
|
||||||
__git_complete gw _git_pull &> /dev/null
|
|
||||||
|
|
||||||
# Autocomplete with my git emails.
|
# Autocomplete with my git emails.
|
||||||
function _gu() {
|
function _gu() {
|
||||||
|
|
Loading…
Reference in a new issue