mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
Sync from Mac
This commit is contained in:
parent
90110e8fed
commit
02ed4d20fb
11 changed files with 163 additions and 42 deletions
|
|
@ -1,5 +1,6 @@
|
|||
### Variables ###
|
||||
|
||||
$EDITOR = "code"
|
||||
$DOTFILES = "$HOME\Documents\.dotfiles"
|
||||
|
||||
### PSReadLine ###
|
||||
|
|
@ -39,20 +40,48 @@ ${function:doku} = { Set-Location -Path ~\MyDocuments && Get-ChildItem }
|
|||
Set-Alias "touch" "New-Item"
|
||||
Set-Alias "open" "explorer.exe"
|
||||
|
||||
# Dev #
|
||||
# Shell Configurations #
|
||||
|
||||
${function:shcfg} = { code $PROFILE }
|
||||
${function:shcfg} = { $EDITOR $PROFILE }
|
||||
${function:reload} = { Invoke-Expression $PROFILE }
|
||||
${function:csi} = { dotnet script }
|
||||
${function:pulldots} = { Set-Location -Path $DOTFILES && git pull }
|
||||
Set-Alias "pwshcfg" "shcfg"
|
||||
|
||||
# Dotnet #
|
||||
|
||||
${function:csi} = { dotnet script }
|
||||
|
||||
# C & C++ #
|
||||
|
||||
Set-Alias "cl" "clang"
|
||||
Set-Alias "clp" "clang++"
|
||||
Set-Alias "clang" "clang -std=c99"
|
||||
Set-Alias "clang++" "clang++ -std=c++2b"
|
||||
|
||||
# Python & Conda #
|
||||
|
||||
Set-Alias "python3" "python"
|
||||
Set-Alias "pip3" "pip"
|
||||
Set-Alias "py" "python"
|
||||
Set-Alias "cl" "clang"
|
||||
Set-Alias "cl++" "clang++"
|
||||
Set-Alias "clang" "clang -std=c99"
|
||||
Set-Alias "clang++" "clang++ -std=c++2b"
|
||||
Set-Alias "pyact" "conda activate"
|
||||
Set-Alias "pylsenv" "conda env list"
|
||||
Set-Alias "pydeact" "conda deactivate"
|
||||
Set-Alias "pymkenv" "conda create --name"
|
||||
|
||||
# # Git #
|
||||
|
||||
# Set-Alias "g" "git"
|
||||
# Set-Alias "ginit" "git init"
|
||||
# Set-Alias "ga" "git add"
|
||||
# Set-Alias "gaa" "git add --all"
|
||||
# Set-Alias "gc" "git commit --message"
|
||||
# Set-Alias "gca" "git commit --all --message"
|
||||
# Set-Alias "gcl" "git clone"
|
||||
# Set-Alias "gclnh" "git clone --depth 1"
|
||||
# Set-Alias "gs" "git status"
|
||||
# Set-Alias "gpl" "git pull"
|
||||
# Set-Alias "gps" "git push"
|
||||
|
||||
|
||||
# Editors #
|
||||
|
||||
|
|
@ -78,8 +107,6 @@ function cdls { param( [string] $dirname)
|
|||
Set-Location $dirname && Get-ChildItem
|
||||
}
|
||||
|
||||
|
||||
|
||||
### Modules ###
|
||||
|
||||
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue