This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Even easier than making a function and subshells and all of that, just set the values in your RC! Other things that use | |
# TERMCAP can now take advantage of these values. | |
export LESS_TERMCAP_md=$'\e[1;31m' | |
export LESS_TERMCAP_me=$'\e[0m' | |
export LESS_TERMCAP_se=$'\e[0m' | |
export LESS_TERMCAP_so=$'\e[1;36m' | |
export LESS_TERMCAP_ue=$'\e[0m' | |
export LESS_TERMCAP_us=$'\e[4;32m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function move_sequential { | |
if [[ $# != 4 ]]; then | |
echo Usage: move_sequential <prefix> <first number to move, inclusive> <last number to move, inclusive> <suffix> | |
return 1 | |
fi | |
PREFIX=$1 | |
FIRST=$2 |