Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 7027468

Browse files
authored
Fix a bug where code in fish was incorrectly mapped to code-insiders (#1138)
In `fish`, `and` requires a semicolon. https://fishshell.com/docs/current/cmds/and.html This PR also changes `!` to `not` in order to use https://fishshell.com/docs/current/cmds/not.html instead of relying on https://fishshell.com/docs/3.0/commands.html#test-combinators
1 parent 21a1aba commit 7027468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

containers/codespaces-linux/.devcontainer/setup-user.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ echo "Defaults secure_path=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
99
apt-get install -yq fish
1010
FISH_PROMPT="function fish_prompt\n set_color green\n echo -n (whoami)\n set_color normal\n echo -n \":\"\n set_color blue\n echo -n (pwd)\n set_color normal\n echo -n \"> \"\nend\n"
1111
printf "$FISH_PROMPT" >> /etc/fish/functions/fish_prompt.fish
12-
printf "if type code-insiders > /dev/null 2>&1 and ! type code > /dev/null 2>&1\n alias code=code-insiders\nend" >> /etc/fish/conf.d/code_alias.fish
12+
printf "if type code-insiders > /dev/null 2>&1; and not type code > /dev/null 2>&1\n alias code=code-insiders\nend" >> /etc/fish/conf.d/code_alias.fish
1313

1414
# Add user to a Docker group
1515
sudo -u ${USERNAME} mkdir /home/${USERNAME}/.vsonline

0 commit comments

Comments
 (0)