mant - abra manpages em seu terminal

Publicado por Perfil removido (última atualização em 19/04/2017)

[ Hits: 1.270 ]

Download mant




Para ser usado com rofi ou dmenu.

Sintaxe: mant $pagina

Abre manpage definida por $pagina em seu terminal (por padrão urxvt, usuario define).

Se falhar ele avisa o usuário com outro rofi.

  



Esconder código-fonte

#!/bin/sh
#
# Open a terminal to show a manpage
# to be used with applications like
# dmenu and rofi
# uses urxvt by default
#
#
# Change here for your Terminal
TERMINAL_APPLICATION="urxvt"
#
# get manapge to open from all arguments
MANPAGE="$@"
#
# Check if manpage exists and warn user
if ! man "${MANPAGE}"; then
  rofi -e "No manual entry for "${MANPAGE}""; exit
fi
#
# Open terminal with manpage
if [ ! -z "${MANPAGE}" ]; then
  "${TERMINAL_APPLICATION}" -e man "${MANPAGE}" || (rofi -e "FAILED TO OPEN MANPAGE"; exit)
fi

Scripts recomendados

Converte acentos e caracteres especiais para codificação HTML

CloneHD

DownloadVideo

Mini IDS

openurl: abre urls no firefox


  

Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts