Skip to content
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

Open
ysl2 opened this issue Jul 7, 2024 · 5 comments
Open

[Mac] Localhost configs #66

ysl2 opened this issue Jul 7, 2024 · 5 comments
Labels

Comments

@ysl2
Copy link
Owner

ysl2 commented Jul 7, 2024

No description provided.

@ysl2 ysl2 added the Mac label Jul 7, 2024
@ysl2
Copy link
Owner Author

ysl2 commented Jul 7, 2024

# ~/.bashrc.localhost.pre

MYCONDA=~/.vocal/mambaforge
MYNOMIRRORFLAG=1

@ysl2
Copy link
Owner Author

ysl2 commented Jul 21, 2024

# ~/.config/kitty/kitty.localhost.conf

background_opacity 0.7

@ysl2
Copy link
Owner Author

ysl2 commented Jul 21, 2024

# ~/.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
# }

@ysl2
Copy link
Owner Author

ysl2 commented Aug 25, 2024

Mac ssh local config, need to add company's ssh information. Refer to the original ~/.ssh/config file.

@ysl2
Copy link
Owner Author

ysl2 commented Oct 23, 2024

# ~/.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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant