Windows
1.输出PowerShell启动位置
$Profile
C:\Users\XXX\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
2.新建并打开Microsoft.PowerShell_profile.ps1,输入快捷指令:
function hd {hexo clean ; hexo g ; hexo d}
function hs {hexo clean ; hexo g ; hexo s}
function gd {git add . ; git commit -m "update" ; git push -f}
function cdh {cd E:\BaiduNetdiskWorkspace\web\hexo\blog}
function cdhp {cd E:\BaiduNetdiskWorkspace\web\hexo\blog\source\_posts}
function cdhi {cd E:\BaiduNetdiskWorkspace\web\hexo\blog\themes\3-hexo\source\img}
function cdn {cd E:\BaiduNetdiskWorkspace\web\navigation}
function cdfb {cd E:\FigureBestv4.4_release_20220801}
function cdtc {cd E:\TheColor}
Set-Alias ll ls
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。