forked from frappe/erpnext
-
Notifications
You must be signed in to change notification settings - Fork 0
Some Useful Aliases
Valmik edited this page Apr 20, 2016
·
5 revisions
startdev() {
mysql.server start
}
stopdev() {
mysql.server stop
}
# git
alias gs="git status -s"
alias ga="git add"
alias gap="git add -p"
alias gc="git commit"
alias gpl="git pull --rebase upstream HEAD"
alias gdw="git diff --word-diff"
alias gdc="git diff --cached"
alias gdcw="git diff --cached --word-diff"
# github
alias pullhub="hub pull-request -b frappe:develop -h [username]:\$(current_branch)"
pullreq() {
# pull request to frappe organization to a particular branch instead of develop
hub pull-request -b frappe:$1 -h [username]:$(current_branch)
}
alias pushme="git push origin HEAD"
alias pushup="git push upstream HEAD"
alias pullup="git pull --rebase upstream HEAD"
alias uc="uncommitted ."
# Remove all pyc files in directory
alias rmpyc='find . -name "*.pyc" -exec rm -rf {} \;'
# Starts a SMTP server
alias smtpd="sudo python -m smtpd -n -c DebuggingServer localhost:25"
benchstatus() {
ls -1 | xargs -n1 -I{app} sh -c 'cd {app} && echo "-----" && echo {app} && echo "-----" && git status -s && cd ..'
}
# Disables command history between tabs
unsetopt share_history
# simple python server
serve() {
python -m SimpleHTTPServer $1
}
####Community Wiki
- [Install ERPNext on Debian based systems](Install ERPNext on Debian based systems)
- [Install ERPNext on RedHat based systems](Install ERPNext on RedHat based systems)
- [Country wise Chart of Accounts](Country wise Chart of Accounts)
- [Developer Docs](Developer Docs)
- [Some Useful Aliases](Some Useful Aliases)
- [Test Checklists](Test Checklists)
- [Community Developed Custom Scripts](Community Developed Custom Scripts)
- [Legacy Print Formats (Category)](Legacy Print Formats (Category))
- [WSGI Production Deployment](WSGI Production Deployment)
- [Version 4 Permission Use Cases](Version 4 Permission Use Cases)
- [Adding Custom Form to Website](Adding Custom Form to Website)
- [Apache HTTP Settings for Mac OS](Apache HTTP Settings for Mac OS)
- [ERPNext Upgrade to Version 5](ERPNext Upgrade to Version 5)
- [Feature Suggestions](Feature Suggestions)
- [How to Install ERPNext Version 3](How to Install ERPNext Version 3)
- [Future Development: Tracking Productivity](Future Development: Tracking Productivity)
- [Improve Precision of Stock Valuation](Improve Precision of Stock Valuation)
- [Integrating Emails in ERPNext](Integrating Emails in ERPNext)
- [Migrating your erpnext instance to wsgi](Migrating your erpnext instance to wsgi)
- [MySQL configuration file](MySQL configuration file)
- [Restoring From ERPNext Backup](Restoring From ERPNext Backup)
- [Setting up Backup Manager](Setting up Backup Manager)
- [Setting up TLS SSL certificates Let's Encrypt for ERPNext sites](Setting up TLS SSL certificates Let's Encrypt for ERPNext sites)
- [Ubuntu HA Cluster with lsyncd, remote MariaDB, Apache Reverse Proxy Setup Guide](Ubuntu HA Cluster with lsyncd, remote MariaDB, Apache Reverse Proxy Setup Guide)
- [Updating ERPNext Instance](Updating ERPNext Instance)
- [Agri Farm ERPNext](Agri Farm ERPNext)
- [Troubleshooting Guide Template](Troubleshooting Guide Template)
- ["Expense or Difference account is mandatory for [YOUR ITEM HERE] as it impacts overall stock value"]("Expense or Difference account is mandatory for [YOUR ITEM HERE] as it impacts overall stock value")