Created
January 29, 2018 15:12
-
-
Save rudenoise/f912037d2221f9b6020823628df6f222 to your computer and use it in GitHub Desktop.
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
# MOTD | |
function echo_color() { | |
local color="$1" | |
printf "${color}$2\033[0m\n" | |
} | |
echo_color "\033[0;90m" "c-f Move forward" | |
echo_color "\033[0;90m" "c-b Move backward" | |
echo_color "\033[0;90m" "c-p Move up" | |
echo_color "\033[0;90m" "c-n Move down" | |
echo_color "\033[0;90m" "c-a Jump to beginning of line" | |
echo_color "\033[0;90m" "c-e Jump to end of line" | |
echo_color "\033[0;90m" "c-d Delete forward" | |
echo_color "\033[0;90m" "c-h Delete backward" | |
echo_color "\033[0;90m" "c-k Delete forward to end of line" | |
echo_color "\033[0;90m" "c-u Delete entire line" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cheifed this from https://news.ycombinator.com/item?id=16243360