cmdtypist/install.sh
2017-05-24 18:28:55 +01:00

10 lines
453 B
Bash
Executable File

#!/bin/bash
#Creates a symbolic link with begin to cmdtypist directory.
echo "Enter password to create a link for cmdtypist and access it from any directory" &&
sudo gcc cmdtypist.c -o cmdtypist &&
echo >> $HOME/.bashrc &&
echo "#symbolic link for cmdtypist">> $HOME/.bashrc &&
echo "alias begin='cd $HOME/cmdtypist/'">> $HOME/.bashrc &&
echo "alias cmdtypist='$HOME/cmdtypist/cmdtypist'">> $HOME/.bashrc &&
mkdir $HOME/cmtypist/
cp -r . $HOME/cmtypist/