Small uypdates

Jonathan Hodgson 7 years ago
parent 1433f8d967
commit 93878d3b8b
  1. 2
      bin/freeEbook
  2. 5
      config/.sshrc

@ -4,5 +4,7 @@ markup=$(curl https://www.packtpub.com/packt/offers/free-learning 2> /dev/null |
#img=$(echo "$markup" | sed -n "/dotd-main-book-image/,$ p" | head | sed -n "/<img/ p" | sed -nr "s/.*<img.*?src=[\"|'](.*?)[\"|'].*/\3/p") #img=$(echo "$markup" | sed -n "/dotd-main-book-image/,$ p" | head | sed -n "/<img/ p" | sed -nr "s/.*<img.*?src=[\"|'](.*?)[\"|'].*/\3/p")
img=$(echo "$markup" | sed -n "/dotd-main-book-image/,$ p" | head | sed -n "/<img/ p" | sed -nr 's/.*?<img src="([^"]*)".*img.*/\1/p') img=$(echo "$markup" | sed -n "/dotd-main-book-image/,$ p" | head | sed -n "/<img/ p" | sed -nr 's/.*?<img src="([^"]*)".*img.*/\1/p')
curl "$img" > /tmp/freeBook 2> /dev/null curl "$img" > /tmp/freeBook 2> /dev/null
clear
imgcat /tmp/freeBook imgcat /tmp/freeBook
rm /tmp/freeBook rm /tmp/freeBook
echo "https://www.packtpub.com/packt/offers/free-learning#"

@ -3,7 +3,7 @@ echo "syntax on">>~/.vimrc
echo "set number">>~/.vimrc echo "set number">>~/.vimrc
echo "set incsearch">>~/.vimrc echo "set incsearch">>~/.vimrc
TERM=xterm-256color export TERM=xterm-256color
alias vim="vi" alias vim="vi"
@ -16,11 +16,10 @@ if [ -f /usr/share/git/completion/git-completion.bash ]; then
source /usr/share/git/completion/git-completion.bash source /usr/share/git/completion/git-completion.bash
source /usr/share/git/completion/git-prompt.sh source /usr/share/git/completion/git-prompt.sh
elif [ -f /usr/share/git-core/contrib/completion/git-completion.bash ]; then elif [ -f /usr/share/git-core/contrib/completion/git-completion.bash ]; then
echo "I get here"
source /usr/share/git-core/contrib/completion/git-completion.bash source /usr/share/git-core/contrib/completion/git-completion.bash
source /usr/share/git-core/contrib/completion/git-prompt.sh source /usr/share/git-core/contrib/completion/git-prompt.sh
else else
echo "For some reason, no git completion" #echo "For some reason, no git completion"
fi fi
# Reset # Reset
Color_Off="\[\033[0m\]" # Text Reset Color_Off="\[\033[0m\]" # Text Reset

Loading…
Cancel
Save