-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mac] Localhost configs #66
Labels
Comments
# ~/.bashrc.localhost.pre
MYCONDA=~/.vocal/mambaforge
MYNOMIRRORFLAG=1 |
|
# ~/.bashrc.localhost.post
#!/bin/sh
# Setting PATH for Python 2.7
# The original version is saved in .zprofile.pysave
# PATH="${PATH}:/Library/Frameworks/Python.framework/Versions/2.7/bin"
# export PATH
# alias weterm='ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa [email protected] -p 36000'
alias weterm="trzsz -d ssh ${WECOM_ID}@${JUMPSERVER_IP} -p ${JUMPSERVER_PORT}"
alias psql='docker exec -it mypostgres /usr/bin/psql'
alias 201='ssh -p 2201 [email protected] -i ~/.ssh/yusongli_201'
alias 202='ssh -p 2202 [email protected] -i ~/.ssh/yusongli_202'
alias s201='sftp -P 2201 -i ~/.ssh/yusongli_201 [email protected]'
alias s202='sftp -P 2202 -i ~/.ssh/yusongli_202 [email protected]'
PP() {
http_proxy=127.0.0.1:${COMPANY_PORT} https_proxy=127.0.0.1:${COMPANY_PORT} "$@"
}
# function cd {
# builtin cd "$@"
# command -v conda &> /dev/null && conda_env
# }
#
# function conda_env {
# [[ $PWD/ == $HOME/Documents/TCSTest/* ]] && source venv/bin/activate
# [[ $PWD/ == $HOME/Documents/tcs-test-image/* ]] && conda activate tcs-test-image
# } |
Mac ssh local config, need to add company's ssh information. Refer to the original ~/.ssh/config file. |
# ~/.config/alacritty/alacritty.localhost.toml
[font]
size = 14
[window]
startup_mode = 'Maximized'
opacity = 1
decorations = 'Buttonless'
# blur = true
[keyboard]
bindings = [
{ key = '[', mods = 'Shift|Alt', mode = '~Search', action = 'ToggleViMode' },
{ key = 'A', mods = 'Shift', mode = 'Vi|~Search', action = 'ClearSelection' },
{ key = 'A', mods = 'Shift', mode = 'Vi|~Search', action = 'ToggleViMode' }
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: