summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-05-23 02:08:04 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2020-05-23 02:08:04 +0000
commit686a55246358e1b524aa34970bf0e9c0f14cf173 (patch)
tree2d30f3ec40d18027a0996af4c44e725ddc93769d
parentc5bc0c099edc42a75cfffc73b5ae76f42806f74a (diff)
zshrc: remove gvim and gview functions
These were necessary due to some strange behavior on CentOS systems, but are no longer needed. Remove them. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
-rw-r--r--zsh/zshrc41
1 files changed, 0 insertions, 41 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 5a2b31a..b75af96 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -201,47 +201,6 @@ sless () {
less "$@"
)
}
-# -z SERVER: specify server
-# -t SERVER: connect to SERVER and edit files
-gvim () {
- if [[ $1 = "-t" ]]
- then
- local name="$2"
- shift 2
- command gvim --servername "$name" --remote "$@"
- elif [[ $1 = "-z" ]]
- then
- local name="$2"
- shift 2
- command gvim --servername "$name" "$@"
- # When using ssh forwarding, the server name is usually not set. Set a
- # default value, either GVIM, or if that's taken, GVIM suffixed with a
- # number, which is what Vim would have set for us anyway.
- elif [[ -z ${DISPLAY:#localhost:*} ]]
- then
- command gvim --servername GVIM "$@"
- else
- command gvim "$@"
- fi
-}
-gview () {
- if [[ $1 = "-t" ]]
- then
- local name="$2"
- shift 2
- command gview --servername "$name" --remote "$@"
- elif [[ $1 = "-z" ]]
- then
- local name="$2"
- shift 2
- command gview --servername "$name" "$@"
- elif [[ -z ${DISPLAY:#localhost:*} ]]
- then
- command gview --servername GVIEW "$@"
- else
- command gview "$@"
- fi
-}
ggrep () {
grep -r "$@" *
}