commit a2a6cffa1e45359c47913ac795c0b290cb940063
parent f3f2868a145225ed32ce7d890e27d79f43cd7e1b
Author: gearsix <gearsix@tuta.io>
Date: Thu, 26 Jan 2023 11:51:58 +0000
bashrc: man opens in new window (if using gnome-terminal)
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bashrc b/bashrc
@@ -1,4 +1,4 @@
-
+#!/usr/bin/env bashrc
# gearsix ~/.bashrc
# exports
@@ -32,6 +32,9 @@ alias llt='ls -lAht' # list format, show almost all, human-readable, sort by
alias lls='ls -lAhS' # list format, show almost all, human-readable, sort by file size (largest first)
alias llu='ls -lAhu' # list format, show almost all, human-readable, sort by user
+# open a new window instead of `less`ing it (if using gnome-terminal)
+if [ "$(command -v gnome-terminal)" != "" ]; then alias man='gnome-terminal -- man'; fi
+
# Taken from debian /usr/share/doc/bash/examples/startup-files
# don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoreboth