Merge branch 'main' of github.com:qwjyh/dotfiles
This commit is contained in:
commit
2b5e12404f
1 changed files with 19 additions and 0 deletions
19
bin/linux/install_pwsh.sh
Executable file
19
bin/linux/install_pwsh.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/bash
|
||||
set -eu
|
||||
|
||||
# =========================================================
|
||||
# check executing location
|
||||
# =========================================================
|
||||
if [ ! -d "bin" -a ! -d "dotfiles" ]; then
|
||||
echo "Wrong execution location"
|
||||
echo "Please run this script on dotfiles root folder."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# =========================================================
|
||||
# links
|
||||
# =========================================================
|
||||
mkdir -p ~/.config/powershell
|
||||
ln -sb $(pwd)/dotfiles/pwsh/powershell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1
|
||||
|
Loading…
Reference in a new issue