1 Star 0 Fork 0

arashrun/conf

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Microsoft.PowerShell_profile.ps1 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
ccls 提交于 2024-08-06 22:27 +08:00 . windows: rm -rf
#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
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arashrun/conf.git
git@gitee.com:arashrun/conf.git
arashrun
conf
conf
master

搜索帮助