mirror of https://github.com/n05la3/cmdtypist
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
453 B
Bash
10 lines
453 B
Bash
#!/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/ |