mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Enable syntax highlighting in less, and update less too
This commit is contained in:
@@ -48,6 +48,7 @@ main() {
|
|||||||
jq
|
jq
|
||||||
kubernetes-cli
|
kubernetes-cli
|
||||||
kubernetes-helm
|
kubernetes-helm
|
||||||
|
less
|
||||||
mysql
|
mysql
|
||||||
openshift-cli
|
openshift-cli
|
||||||
peco
|
peco
|
||||||
@@ -60,6 +61,7 @@ main() {
|
|||||||
ruby-build
|
ruby-build
|
||||||
shellcheck
|
shellcheck
|
||||||
sshfs
|
sshfs
|
||||||
|
source-highlight
|
||||||
the_silver_searcher
|
the_silver_searcher
|
||||||
thefuck
|
thefuck
|
||||||
tmux
|
tmux
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ source "$DOTSHELL/git.sh"
|
|||||||
source "$DOTSHELL/tmux.sh"
|
source "$DOTSHELL/tmux.sh"
|
||||||
source "$DOTSHELL/thefuck.sh"
|
source "$DOTSHELL/thefuck.sh"
|
||||||
source "$DOTSHELL/ctags.sh"
|
source "$DOTSHELL/ctags.sh"
|
||||||
|
source "$DOTSHELL/less.sh"
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
source "$DOTSHELL/nodejs.sh"
|
source "$DOTSHELL/nodejs.sh"
|
||||||
|
|||||||
11
shell/less.sh
Normal file
11
shell/less.sh
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# less setup
|
||||||
|
#
|
||||||
|
|
||||||
|
alias le="less"
|
||||||
|
|
||||||
|
# Enable syntax highlighting via source-highlight
|
||||||
|
if command -v src-hilite-lesspipe.sh > /dev/null; then
|
||||||
|
export LESSOPEN="| src-hilite-lesspipe.sh %s"
|
||||||
|
export LESS=" -R "
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user