Created
January 24, 2018 16:50
-
-
Save vishvanath45/e602b91f782d2d1ad0e263a3da20cb5d to your computer and use it in GitHub Desktop.
Making aliases for Proxy setting in proxy, inside college network.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # Set Proxy | |
| alias sp12='export http_proxy="172.16.1.12:3128"; | |
| export https_proxy="172.16.1.12:3128"; | |
| export ftp_proxy="172.16.1.12:3128"; | |
| export HTTP_proxy="172.16.1.12:3128" | |
| export HTTPS_proxy="172.16.1.12:3128"; | |
| export FTP_proxy="172.16.1.12:3128";' | |
| alias sp19='export http_proxy="172.16.1.19:3128"; | |
| export https_proxy="172.16.1.19:3128"; | |
| export ftp_proxy="172.16.1.19:3128"; | |
| export HTTP_proxy="172.16.1.19:3128" | |
| export HTTPS_proxy="172.16.1.19:3128"; | |
| export FTP_proxy="172.16.1.19:3128";' | |
| alias sp14='export http_proxy="172.16.1.14:3128"; | |
| export https_proxy="172.16.1.14:3128"; | |
| export ftp_proxy="172.16.1.14:3128"; | |
| export HTTP_proxy="172.16.1.14:3128" | |
| export HTTPS_proxy="172.16.1.14:3128"; | |
| export FTP_proxy="172.16.1.14:3128";' | |
| alias speak='echo moo' | |
| # export -f sp | |
| # Unset Proxy | |
| alias usp='export http_proxy=" "; | |
| export https_proxy=" "; | |
| export ftp_proxy=" "; | |
| export HTTP_proxy=" "; | |
| export HTTPS_proxy=" "; | |
| export FTP_proxy=" ";' | |
| # export -f usp | |
| # now imp thing is here, after this, add this file to source | |
| # run this in terminal after editing the bashrc file | |
| # . ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment