Herpy dooves.
This commit is contained in:
42
assets/pages/tips_tricks/tips_n_tricks.md
Normal file
42
assets/pages/tips_tricks/tips_n_tricks.md
Normal file
@@ -0,0 +1,42 @@
|
||||
## Put cloned repository to PATH 👣
|
||||
|
||||
By putting it in the path, you can use it from anywhere in the terminal.
|
||||
|
||||
For bash, you could run something like this:
|
||||
|
||||
`echo 'export PATH="$PATH:/path/to/SecDep"' >> ~/.bashrc`
|
||||
|
||||
For zsh, you could run something like this:
|
||||
|
||||
`echo 'export PATH="$PATH:/path/to/SecDep"' >> ~/.zshrc`
|
||||
|
||||
## Make it executable 🪄
|
||||
|
||||
`chmod +x /path/to/SecDep/secdep.py`
|
||||
|
||||
## Make an alias 🧙
|
||||
|
||||
For bash
|
||||
|
||||
`alias secdep='python3 /path/to/SecDep/secdep.py' >> ~/.bashrc`
|
||||
|
||||
For zsh
|
||||
|
||||
`alias secdep='python3 /path/to/SecDep/secdep.py' >> ~/.zshrc`
|
||||
|
||||
Or if it is in the path:
|
||||
|
||||
For bash
|
||||
|
||||
`alias secdep='secdep.py' >> ~/.bashrc`
|
||||
|
||||
For zsh
|
||||
|
||||
`alias secdep='secdep.py' >> ~/.zshrc`
|
||||
|
||||
## Usage after those steps 📖
|
||||
|
||||
We can now use the tool by running `secdep` in the terminal.
|
||||
|
||||
For example `secdep -h` will show the help menu.
|
||||
|
||||
Reference in New Issue
Block a user