Shell: improved less pager options.
Zsh: improved ps command for SHELL_CURRENT variable.master
parent
ddd4febf36
commit
52ff4a4150
|
@ -9,6 +9,7 @@
|
||||||
umask 027
|
umask 027
|
||||||
|
|
||||||
## Path
|
## Path
|
||||||
|
## WARNING: putting current dir '.' in PATH is mostly a bad idea!
|
||||||
# export PATH=.:$PATH
|
# export PATH=.:$PATH
|
||||||
|
|
||||||
## TeXlive
|
## TeXlive
|
||||||
|
@ -47,12 +48,9 @@ fi
|
||||||
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
|
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
|
||||||
|
|
||||||
## Manpage.
|
## Manpage.
|
||||||
export MANPAGER="less -s"
|
# export MANPAGER="less -s"
|
||||||
if [ "$OSTYPE" = "linux-gnu" ]; then
|
export MANPAGER="less -sNP '?f%f .?m(file %i of %m) .?ltlines %lt-%lb?L/%L. .byte %bB?s/%s. ?e(END) :?pB%pB\%..%t'"
|
||||||
export MANWIDTH=80
|
export MANWIDTH=80
|
||||||
else
|
|
||||||
export MANWIDTH=75
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Less config. -R is needed for lesspipe.
|
## Less config. -R is needed for lesspipe.
|
||||||
export LESS=' -R '
|
export LESS=' -R '
|
||||||
|
|
2
.zshrc
2
.zshrc
|
@ -11,7 +11,7 @@
|
||||||
if [ "$OSTYPE" = "linux-gnu" ]; then
|
if [ "$OSTYPE" = "linux-gnu" ]; then
|
||||||
SHELL_CURRENT="$(ps -o command hp $$ )"
|
SHELL_CURRENT="$(ps -o command hp $$ )"
|
||||||
else
|
else
|
||||||
SHELL_CURRENT="$(ps -c | awk -v shellpid=$$ '$0 ~ shellpid {print $5}')"
|
SHELL_CURRENT="$(ps -o command="" $$)"
|
||||||
fi
|
fi
|
||||||
SHELL_DIR="$HOME/.shell.d"
|
SHELL_DIR="$HOME/.shell.d"
|
||||||
|
|
||||||
|
|
20
README
20
README
|
@ -1,13 +1,13 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
# Unix Home Configuration #
|
# Unix Home Configuration #
|
||||||
# Author: Ambrevar #
|
# Author: Ambrevar #
|
||||||
# Date: 2012-10-13 #
|
# Date: 2012-10-29 #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Synopsis
|
Synopsis
|
||||||
********
|
********
|
||||||
This repository contains configuration files for various Unix-programs.
|
This repository contains configuration files for various Unix-programs.
|
||||||
Target distribution: Arch Linux (might work for most Unices as well)
|
Target distribution: Arch Linux and FreeBSD (might work for most Unices as well)
|
||||||
|
|
||||||
Generic Comments
|
Generic Comments
|
||||||
****************
|
****************
|
||||||
|
@ -45,7 +45,7 @@ Final word: do not forget to read the manpages!
|
||||||
|
|
||||||
Awesome
|
Awesome
|
||||||
*******
|
*******
|
||||||
Extra deps: Vicious
|
Extra deps: Vicious (Linux only)
|
||||||
|
|
||||||
Configuration is very close to the default one, which mostly fits my needs.
|
Configuration is very close to the default one, which mostly fits my needs.
|
||||||
Most of the work I've done is for the status bar, but since I'm using the
|
Most of the work I've done is for the status bar, but since I'm using the
|
||||||
|
@ -88,8 +88,8 @@ the disk. As a result, I just get prompted for a main password on Mutt startup,
|
||||||
then everything works out of the box. I use ccrypt for password management
|
then everything works out of the box. I use ccrypt for password management
|
||||||
because it is much more simple than gnupg.
|
because it is much more simple than gnupg.
|
||||||
|
|
||||||
I'm using embedded IMAP and SMTP services -- you must provide the required
|
I'm using embedded IMAP and SMTP services which need appropriate compilation
|
||||||
compilation options.
|
options.
|
||||||
|
|
||||||
Some customization: custom index view, good Emacs integration (see .emacs),
|
Some customization: custom index view, good Emacs integration (see .emacs),
|
||||||
custom theme (matches Emacs colors), various tweaks.
|
custom theme (matches Emacs colors), various tweaks.
|
||||||
|
@ -129,8 +129,8 @@ Please note that this config is mainly intended -- and tested -- for zsh. It
|
||||||
should be mostly bash-compatible though. When incompabilities have been
|
should be mostly bash-compatible though. When incompabilities have been
|
||||||
encountered, it has been reported into the configuration files. Hence the shared
|
encountered, it has been reported into the configuration files. Hence the shared
|
||||||
folder .shell.d/, whose files get sourced by both bash and zsh. Bash-specific
|
folder .shell.d/, whose files get sourced by both bash and zsh. Bash-specific
|
||||||
and zsh-specific options are in dedicated files ending with the apropriate shell
|
and zsh-specific options are in dedicated files ending with the appropriate
|
||||||
name.
|
shell name.
|
||||||
|
|
||||||
TeX
|
TeX
|
||||||
***
|
***
|
||||||
|
@ -138,12 +138,12 @@ TeX
|
||||||
A lot of plainTeX and LaTeX macros. Among others: pie charts, dynamic plots with
|
A lot of plainTeX and LaTeX macros. Among others: pie charts, dynamic plots with
|
||||||
input file file and trend.
|
input file file and trend.
|
||||||
|
|
||||||
plainTeX macros are in the 'texmf' folder. LaTeX macros are all bundled into
|
plainTeX macros are in the '.texmf' folder. LaTeX macros are all bundled into
|
||||||
Emacs snippets for the sake of portability.
|
Emacs snippets for the sake of portability.
|
||||||
|
|
||||||
URxvt
|
URxvt
|
||||||
*****
|
*****
|
||||||
Extra deps: Muennich's perl extensions (keyboard-select, clipboard)
|
Extra deps: Muennich's perl extensions (keyboard-select, clipboard, url-matcher)
|
||||||
|
|
||||||
Custom font and colors, no scroll bar, url-matcher, clipboard, and
|
Custom font and colors, no scroll bar, url-matcher, clipboard, and
|
||||||
keyboard-select.
|
keyboard-select.
|
||||||
|
@ -158,7 +158,7 @@ Known issues
|
||||||
|
|
||||||
Emacs: some colors do not work as intended.
|
Emacs: some colors do not work as intended.
|
||||||
|
|
||||||
Luakit: Adblock will not always block ads correctly.
|
Luakit: Adblock will not always block ads correctly. Work in progress.
|
||||||
|
|
||||||
Ranger: if editor is 'emacsclient -t -a ""', it will not show up if emacs daemon
|
Ranger: if editor is 'emacsclient -t -a ""', it will not show up if emacs daemon
|
||||||
is not running. This is because the "" are not properly recognized.
|
is not running. This is because the "" are not properly recognized.
|
||||||
|
|
Loading…
Reference in New Issue