Skip to content

My mac scripts, which are convenient to call using spotlight search.

License

Notifications You must be signed in to change notification settings

Sigurd-git/Unix-scripts

Repository files navigation

my unix scripts

My unix scripts, which are convenient to call using iterm or terminal.

Usage

  1. Clone this repository, and add the directory to your PATH environment variable.

For zsh:

git clone https://github.com/Sigurd-git/Unix-scripts.git
cd Unix-scripts
echo "PATH=$PWD:$PATH">> ~/.zshrc
source ~/.zshrc

For bash:

git clone https://github.com/Sigurd-git/Unix-scripts.git
cd Unix-scripts
echo "PATH=$PWD:$PATH">> ~/.bashrc
source ~/.bashrc
  1. Change the file mode to executable.
chmod 755 *
  1. Create a file named user_password.txt in the same directory as the script file, and write your bluehive account in the first line, like:
username
password
  1. Set the ssh config file, like:
Host *
    ControlMaster auto
    ControlPath /tmp/ssh_mux_%h_%p_%r

Host bluehive
	Hostname bluehive.circ.rochester.edu
	User username
	ControlMaster auto
	ControlPath /tmp/ssh_bluehive

About

My mac scripts, which are convenient to call using spotlight search.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published