From e7de7157ff98a25507269fc237807c19088f62cd Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 16 Dec 2022 01:27:45 +0900 Subject: [PATCH] add: linux powershell profile install --- bin/linux/install_pwsh.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 bin/linux/install_pwsh.sh diff --git a/bin/linux/install_pwsh.sh b/bin/linux/install_pwsh.sh new file mode 100755 index 0000000..aa5111c --- /dev/null +++ b/bin/linux/install_pwsh.sh @@ -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 +