mant - abra manpages em seu terminal
Publicado por Perfil removido (última atualização em 19/04/2017)
[ Hits: 1.754 ]
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.
#!/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
Startando jboss e serviços necessários
Nenhum comentário foi encontrado.
Jogando Daikatana (Steam) com Patch 1.3 via Luxtorpeda no Linux
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Instalando COSMIC no Linux Mint
Turbinando o Linux Mint: o poder das Nemo Actions
Inteligência Artificial no desenvolvimento de software: quando começar a usar?
O widget do Plasma 6 Área de Notificação
[Resolvido] Algo deu errado ao abrir seu perfil
Instalar Dual Boot, Linux+Windows. (12)
Problemas com o "startx&... no Slackware (10)
Conselho distribuiçao brasileira (8)
Atalho no Linux Mint não aparece menu de troca de monitores (0)









