dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit 1d1550d203bae00bd6390ce264c79ddacbe2cee2
parent 71bd186c0d0f8674506e587a7deefb6915c8882c
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Mon, 29 Apr 2024 23:14:44 -0500

shell: Fixed man function

Diffstat:
M.bashrc | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -41,11 +41,12 @@ PS1='\$$(__git_ps1) ' cd() { echo "Use pushd!"; } man() { - if ! [[ $1 == -* || $1 == [1-9]* ]] ; then + if [[ $1 == -* || $1 == [1-9]* || $1 == n ]] ; then + command man $@ + else echo "Specify section" return 1 fi - command man $@ }