Added a script that links "azure-cli" executable script to $HOME/bin.
This commit is contained in:
17
link-to-bin
Executable file
17
link-to-bin
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/bash
|
||||
#
|
||||
# Make a symbolic link from the 'azure-cli' executable script
|
||||
# to $HOME/bin.
|
||||
#
|
||||
|
||||
if [ ! -d "$HOME/bin" ]; then
|
||||
mkdir -p "$HOME/bin"
|
||||
cat <<'EOF' >> $HOME/.bashrc
|
||||
|
||||
# Add $HOME/bin to the PATH variable
|
||||
export PATH=$HOME/bin:$PATH
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Make a link
|
||||
ln -s "$(cd $(dirname ${BASH_SOURCE[0]}); pwd)/azure-cli" "$HOME/bin/azure-cli"
|
||||
Reference in New Issue
Block a user