Browse Source

Enable manpages color

master
Riyyi 6 years ago
parent
commit
69eb4339db
  1. 5
      .config/xorg/Xresources
  2. 7
      .config/zsh/.zshrc
  3. 14
      .scripts/alias.sh

5
.config/xorg/Xresources

@ -55,6 +55,11 @@ URxvt*letterSpace: -1
URxvt*scrollBar: false URxvt*scrollBar: false
URxvt*saveLines: 2000 URxvt*saveLines: 2000
! Terminal text colors
URxvt.colorIT: #8c9440
URxvt.colorBD: #c5c8c6
URxvt.colorUL: #81a2be
! Extensions ! Extensions
URxvt.perl-ext-common: default,matcher,eval URxvt.perl-ext-common: default,matcher,eval
URxvt.url-launcher: /usr/bin/xdg-open URxvt.url-launcher: /usr/bin/xdg-open

7
.config/zsh/.zshrc

@ -109,11 +109,11 @@ alias cache='sudo paccache -r'
alias depend="$HOME/.scripts/alias.sh depend" alias depend="$HOME/.scripts/alias.sh depend"
# Programming # Programming
alias jdoc="$HOME/.scripts/alias.sh java-doc"
alias jr="$HOME/.scripts/alias.sh java-run"
alias raspbian="$HOME/.scripts/alias.sh raspbian" alias raspbian="$HOME/.scripts/alias.sh raspbian"
alias jdoc="$HOME/.scripts/alias.sh jdoc"
alias jr="$HOME/.scripts/alias.sh jr"
alias upl='pio run -t upload'
alias ser='pio serialports monitor -b 9600' alias ser='pio serialports monitor -b 9600'
alias upl='pio run -t upload'
alias qmake='qmake -makefile ../ && make' alias qmake='qmake -makefile ../ && make'
# Git # Git
@ -137,6 +137,7 @@ alias offtouchpad='sudo rmmod i2c_hid'
alias ontouchpad="sudo modprobe i2c_hid && $HOME/.scripts/touchscreen.sh 0" alias ontouchpad="sudo modprobe i2c_hid && $HOME/.scripts/touchscreen.sh 0"
# Other # Other
alias man="$HOME/.scripts/alias.sh man"
alias mysql-workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 mysql-workbench 1>/dev/null 2>&1 &; disown" alias mysql-workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 mysql-workbench 1>/dev/null 2>&1 &; disown"
alias weather="curl -s 'http://wttr.in/dordrecht?q&n&p' | head -n -3" alias weather="curl -s 'http://wttr.in/dordrecht?q&n&p' | head -n -3"

14
.scripts/alias.sh

@ -1,15 +1,25 @@
#!/bin/bash #!/bin/bash
man() {
LESS_TERMCAP_md=$'\e[01;31m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[01;44;33m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;32m' \
command man "$@"
}
depend() { depend() {
pactree -u -d 1 $1 | tail -n +2 pactree -u -d 1 $1 | tail -n +2
} }
jdoc() { java-doc() {
mkdir -p './doc'; mkdir -p './doc';
javadoc -d './doc' *.java javadoc -d './doc' *.java
} }
jr() { java-run() {
mkdir -p './out'; mkdir -p './out';
javac -d './out' "$1.java"; javac -d './out' "$1.java";
java -cp './out' "$1" java -cp './out' "$1"

Loading…
Cancel
Save