#روزی_یک_نکته با دلاتو
دستهبندی: #آموزشی #کاربردی #git
#alias
راجب alias برای commit و push کردن داخل git:
ساده بگم، از دست
خلاص شدم، دستور زیر رو میزنید و از این به بعد داخل هر شلی که باشید خودش کل مراحل بالا رو با یه
🔅@LinFAQ
🔅@LinAcademy
دستهبندی: #آموزشی #کاربردی #git
#alias
راجب alias برای commit و push کردن داخل git:
ساده بگم، از دست
git commit -am "blah blah blah"
git push
خلاص شدم، دستور زیر رو میزنید و از این به بعد داخل هر شلی که باشید خودش کل مراحل بالا رو با یه
git cmp "blah blah blah"ردیف میکنه:
git config --global alias.cmp '!f() { git add -A && git commit -m "$@" && git push; }; f'
Source 🔅@LinFAQ
🔅@LinAcademy
DEV Community
Alias for git add, commit and push all together.
As we are developers we love to automate stuff. However, I feel that our use of git is quite a manual...
👍4👎1
#روزی_یک_نکته با دلاتو
دستهبندی: #کاربردی #آموزشی #eshell #emacs #alias
نحوه اضافه کردن alias به eshell ایمکس:
کافیه داخل eshell بنویسید:
خودش alias رو به فایل alias داخل مسیر زیر اضافه میکنه:
Source
🔅@LinFAQ
🔅@LinAcademy
دستهبندی: #کاربردی #آموزشی #eshell #emacs #alias
نحوه اضافه کردن alias به eshell ایمکس:
کافیه داخل eshell بنویسید:
eshell (emacs shell)
alias command1 'command2'که هر دفعه command1 رو بزنید command2 اجرا میشه.
خودش alias رو به فایل alias داخل مسیر زیر اضافه میکنه:
~/.emacs.d/eshell/البته دقت کنید که باید آرگومان ها رو دقیق معلوم کنید، مثال برای باز کردن فایل:
alias vim 'find-file $1'وگرنه آرگومان رو قبول نمیکنه
(تو اینجا اسم فایل هدف رو).
Source
🔅@LinFAQ
🔅@LinAcademy
www.gnu.org
Aliases (Eshell: The Emacs Shell)
Next: Remote Access, Previous: Variables, Up: Commands [Contents][Index]