cmdtypist/install.sh

9 lines
481 B
Bash
Raw Normal View History

2017-05-13 20:26:12 +00:00
#!home/.bashrc
#Creates a symbolic link with begin to cmdtypist directory.
2017-05-13 21:11:52 +00:00
echo "Enter password to create a link for cmdtypist and access it from any directory";&&
gcc cmdtypist.c -o cmdtypist&&
sudo echo >> $HOME/.bashrc&&
echo "#symbolic link for cmdtypist">> $HOME/.bashrc&&
echo "alias begin='cd $HOME/cmdtypistversion1.0/'">> $HOME/.bashrc&&
2017-05-13 20:49:16 +00:00
echo "alias cmdtypist='$HOME/cmdtypistversion1.0/cmdtypist'">> $HOME/.bashrc&
2017-05-13 20:41:37 +00:00
cp -r ../cmdtypistversion1.0 $HOME/cmdtypistversion1.0/