Skip to content

Scripts that optimize the steps and processes for development

Notifications You must be signed in to change notification settings

stevensdotb/useful-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

useful-scripts

Scripts that optimize the steps and processes for development.
Feel free to add your process automation scripts. Let's do it together.

Create alias for bash scripts

Craate a .bash_aliases file if it does not exists

touch .bash_aliases

Open the .bash_aliases file and add the alias for your scripts

alias django_local="$HOME/.useful-scripts/django/django_local.sh"

Note: I like to keep my useful-scripts directory hidden, so, I renamed it as .useful-scripts

Open your .bashrc file and find those lines

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

if they do not exist, you can add those lines into your .bashrc file.

Now, load your changes to keep your aliases alive when you open a new terminal

source .bashrc

Well, it's time to enjoy your script :D

~$ django_local -d mysql runserver
Starting mysql service [Done]
Performing system checks

System check identified no issues (0 silenced).
June 27, 2019 - 12:17:39
Django version 2.2, using settings 'core.settings'
Starting development server at http://127.0.0.1:8000
Quit server with CONTROL-C

About

Scripts that optimize the steps and processes for development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages