proxy aliases + add chromium
This commit is contained in:
parent
a4ed26fdb3
commit
b9f5afa0b6
@ -21,5 +21,6 @@ docker:.docker/cli-plugins
|
|||||||
ipython:.ipython/profile_default/ipython_config.py
|
ipython:.ipython/profile_default/ipython_config.py
|
||||||
gdb:.config/gdb
|
gdb:.config/gdb
|
||||||
sandbox:
|
sandbox:
|
||||||
utils: .local/bin/myip .local/bin/genpass .local/bin/gensalt .local/bin/django-create-project .local/bin/mirror-site .local/bin/split-file .local/bin/extract .local/bin/destroy
|
utils:.local/bin/myip .local/bin/genpass .local/bin/gensalt .local/bin/django-create-project .local/bin/mirror-site .local/bin/split-file .local/bin/extract .local/bin/destroy
|
||||||
|
chromium:.local/bin/pchromium .local/share/applications/pchromium.desktop
|
||||||
all:%less %t %note %tmux %zsh %nvim %git"
|
all:%less %t %note %tmux %zsh %nvim %git"
|
||||||
|
|||||||
@ -193,3 +193,5 @@ alias -g BG="&>/dev/null &" # background
|
|||||||
alias -g RED='2> >(while read line; do printf "\033[0;31m${line}\033[0m\n"; done)'
|
alias -g RED='2> >(while read line; do printf "\033[0;31m${line}\033[0m\n"; done)'
|
||||||
|
|
||||||
alias -g BEEP='&& beep -f 800 -l 250 -n -f 1000 -l 500 || beep -f 800 -l 250 -n -f 500 -l 500'
|
alias -g BEEP='&& beep -f 800 -l 250 -n -f 1000 -l 500 || beep -f 800 -l 250 -n -f 500 -l 500'
|
||||||
|
|
||||||
|
alias -g PROXY="http_proxy='socks5://localhost:1080'"
|
||||||
|
|||||||
7
home/user/.local/bin/pchromium
Executable file
7
home/user/.local/bin/pchromium
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
temp_dir="$(mktemp -d)"
|
||||||
|
|
||||||
|
chromium --proxy-server=socks5://localhost:1080 --user-data-dir="${temp_dir}" --new-window --proxy-bypass-list='10.0.0.0/8,192.168.0.0/16'
|
||||||
|
|
||||||
|
rm -r "${temp_dir}"
|
||||||
4
home/user/.local/share/applications/pchromium.desktop
Normal file
4
home/user/.local/share/applications/pchromium.desktop
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Exec=pchromium
|
||||||
|
Name=pchromium
|
||||||
|
Type=Application
|
||||||
Loading…
x
Reference in New Issue
Block a user