if else in mac terminal
#!/bin/bash
defaultsReturn=$(defaults read com.apple.finder AppleShowAllFiles)
if [ '1' = "$defaultsReturn" ]; then
echo "AppleShowAllFiles is enabled"
elif [ '0' = "$defaultsReturn" ]; then
echo "AppleShowAllFiles is not enabled"
else
echo "defaults returned some other value: $defaultsReturn"
fi
Also in Shell:
- powershell create symlink
- git add commit in one command
- remove git from project
- remove frmo staging git
- how to run python in terminal
- laravel create controller
- How to check the installed version of React-Native
- cosmicjs
- store result of command in variable bash
- dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- homestead.yaml adding provisions
- grepper shortcut key
- restart service linux crontab
- git config --global credential.helper osxkeychain
- how to create branch in github using git bash
- how to install vue in laravel
- docker compose run
- npm move package from devdependencies to dependencies
- git push pull asks for login everytime
- msdos dir for subdirectories
- how to move file in directory in linux
- allow user root commands linux centos
- how to remove node_modules from git
- install strapi cli