ysl2 / .dotfiles

My dotfiles
2 stars 0 forks source link

[Mac] Localhost configs #66

Open ysl2 opened 4 months ago

ysl2 commented 4 months ago
# ~/.bashrc.localhost.pre

MYCONDA=~/.vocal/mambaforge
MYNOMIRRORFLAG=1
ysl2 commented 4 months ago
# ~/.config/kitty/kitty.localhost.conf

background_opacity 0.7
ysl2 commented 4 months ago
# ~/.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

export HOMEBREW_NO_AUTO_UPDATE=1

# alias weterm='ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa songliyu@118.24.225.114 -p 36000'
alias weterm="trzsz -d ssh ${WECOM_ID}@${JUMPSERVER_IP} -p ${JUMPSERVER_PORT}"
alias psql='docker exec -it mypostgres /usr/bin/psql'

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 commented 2 months ago

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

ysl2 commented 1 month ago
# ~/.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'   }
]