代码拉取完成,页面将自动刷新
#Set-PSReadLineOption -Colors @{
#Command = 'Magenta'
#Number = 'Green'
#Member = 'Green'
#Operator = 'Yellow'
#Type = 'Green'
#Variable = 'Yellow'
#Parameter = 'Yellow'
#ContinuationPrompt = 'Green'
#Default = 'Green'
#}
#
function self {
cd D:\k-s\private\hugo\
}
function sdk {
cd D:\k-s\private\sdk\
}
function arash{
cd D:\k-s\private\arashrun.github.io
}
function config {
vim $profile.CurrentUserAllHosts
}
function grep {
param($path, $str)
Get-ChildItem -Path "$path" -Recurse | select-string -Pattern "$str"
# select-string "$args" -Path .\*
}
function ff {
Get-ChildItem -Path . -Recurse -Name "$args"
}
function ll {
Get-ChildItem | % {$_.FullName}
}
function touch {
new-item $args
}
function cat {
Get-Content $args
}
function cm {
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 $args
}
# git
function gs {
git status
}
function gd {
git diff $args
}
function gb{
git branch $args
}
# etc
function qk {
wt -w _quake -p "vs2019"
}
function hugos {
hugo server -D --bind "192.168.0.107" --port 80 -b http://192.168.0.107/
}
Import-Module posh-git
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/material.omp.json"| Invoke-Expression
function rm([string]$path, [switch]$f, [switch]$r) {
if ($f -and $r) {
Remove-Item -LiteralPath $path -Force -Recurse -ErrorAction Stop
} elseif ($f) {
Remove-Item -LiteralPath $path -Force -ErrorAction Stop
} elseif ($r) {
Remove-Item -LiteralPath $path -Recurse -ErrorAction Stop
} else {
Remove-Item -LiteralPath $path -ErrorAction Stop
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。