mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Make sure all custom zsh functions start with function
This commit is contained in:
parent
66ee3a3f67
commit
e852cc501c
1 changed files with 3 additions and 3 deletions
|
|
@ -271,7 +271,7 @@ in {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
nv() {
|
function nv() {
|
||||||
# Assumes all configs exist in directories named ~/.config/nvim-*
|
# Assumes all configs exist in directories named ~/.config/nvim-*
|
||||||
local config=$(fd --max-depth 1 --glob 'nvim*' ~/.config | fzf --prompt="Neovim Configs > " --height=~50% --layout=reverse --border --exit-0)
|
local config=$(fd --max-depth 1 --glob 'nvim*' ~/.config | fzf --prompt="Neovim Configs > " --height=~50% --layout=reverse --border --exit-0)
|
||||||
|
|
||||||
|
|
@ -282,11 +282,11 @@ in {
|
||||||
NVIM_APPNAME=$(basename $config) nvim $*
|
NVIM_APPNAME=$(basename $config) nvim $*
|
||||||
}
|
}
|
||||||
|
|
||||||
svndiffless() {
|
function svndiffless() {
|
||||||
svn diff "$@" |diff-so-fancy |less -R
|
svn diff "$@" |diff-so-fancy |less -R
|
||||||
}
|
}
|
||||||
|
|
||||||
svndiffless-nows() {
|
function svndiffless-nows() {
|
||||||
svn diff -x -w "$@" |diff-so-fancy |less -R
|
svn diff -x -w "$@" |diff-so-fancy |less -R
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue