a lot
Modified shell-loading-snippets DockerNetwork support better l and ll dot the pipe
This commit is contained in:
parent
50d9aef264
commit
86fdee1acc
9 changed files with 100 additions and 24 deletions
|
@ -1,6 +1,14 @@
|
|||
echo "$(date) SZ_SKIP_DEFAULT_SHELL='$SZ_SKIP_DEFAULT_SHELL'; snippet/sh" >> /tmp/default_shell
|
||||
|
||||
## Place the following line at the top of your .zshrc to make powershell your default shell.
|
||||
## __P=".local/share/powershell/Scripts/shell-loading-snippets/$(basename $SHELL)"; find ~/$__P -exec true \; && . ~/$__P
|
||||
|
||||
function PowerShellLauncher() {
|
||||
|
||||
export SZ_POWERSHELL_LAUNCER_CALLED=1
|
||||
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
if [[ -x ~/.dotnet/tools/pwsh && "1" != "$(which pwsh > /dev/null && echo 1)" ]]; then
|
||||
PWSH='~/.dotnet/tools/pwsh'
|
||||
alias pwsh="$PWSH "
|
||||
|
@ -22,3 +30,6 @@ if [[ "$SZ_SKIP_DEFAULT_SHELL" != "1" ]]; then
|
|||
fi
|
||||
echo "continue" >> /tmp/default_shell
|
||||
export SZ_SKIP_DEFAULT_SHELL=1
|
||||
}
|
||||
|
||||
[[ "$SZ_POWERSHELL_LAUNCER_CALLED" != "1" ]] && PowerShellLauncher
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue