Skip to content

Instantly share code, notes, and snippets.

@dade80vr
Created June 12, 2017 15:50
Show Gist options
  • Save dade80vr/8a9b34de8f4d9d92e59ef0b483394562 to your computer and use it in GitHub Desktop.
Save dade80vr/8a9b34de8f4d9d92e59ef0b483394562 to your computer and use it in GitHub Desktop.
Set Fish shell default into Synology NAS
preferred_shell=
if [ -x /opt/bin/fish ]; then
preferred_shell=/opt/bin/fish
fi
if [ -n "$preferred_shell" ]; then
case $- in
*i*) SHELL=$preferred_shell; export SHELL; exec "$preferred_shell";;
esac
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment