नीचे दिए गए चरणों का पालन करें:
वह फ़ाइल खोलें .bashrcजो स्थान पर मिली हैC:\Users\USERNAME\.bashrc
यदि फ़ाइल .bashrcमौजूद नहीं है, तो नीचे दिए चरणों का उपयोग करके इसे बनाएं:
- ओपन कमांड प्रॉम्प्ट और गोटो
C:\Users\USERNAME\।
- टाइप कमांड
notepad ~/.bashrc
यह .bashrcफाइल को जेनरेट करता है।
WP CLI, Git, Grunt & PHPCS आदि के सैंपल कमांड नीचे जोड़ें।
# ----------------------
# Git Command Aliases
# ----------------------
alias ga='git add'
alias gaa='git add .'
alias gaaa='git add --all'
# ----------------------
# WP CLI
# ----------------------
alias wpthl='wp theme list'
alias wppll='wp plugin list'
अब आप कमांड का उपयोग कर सकते हैं:
ga के बजाय git add .
wpthl के बजाय wp theme list
उदाहरण के लिए। मैंने wpthlWP CLI कमांड के लिए उपयोग किया है wp theme list।
Yum@M MINGW64 /c/xampp/htdocs/dev.test
$ wpthl
+------------------------+----------+-----------+----------+
| name | status | update | version |
+------------------------+----------+-----------+----------+
| twentyeleven | inactive | none | 2.8 |
| twentyfifteen | inactive | none | 2.0 |
| twentyfourteen | inactive | none | 2.2 |
| twentyseventeen | inactive | available | 1.6 |
| twentysixteen | inactive | none | 1.5 |
| twentyten | inactive | none | 2.5 |
| twentythirteen | inactive | none | 2.4 |
| twentytwelve | inactive | none | 2.5 |
अधिक जानकारी के लिए लेख पढ़ें विंडोज़ के लिए WP CLI, Git, ग्रंट और PHPCS कमांड के लिए कीबोर्ड शॉर्टकट / उपनाम
lsडिफ़ॉल्ट उपनाम नहीं है, यह एक आदेश है।ls.exeमें है/usr/binजो कहने के लिए हैC:\Program Files\Git\usr\bin\ls.exe। आप इसेcmdयाPowerShellकमांडलाइन से चला सकते हैं ।