Skip to content

Instantly share code, notes, and snippets.

@kazimmsyed
Last active June 30, 2026 05:37
Show Gist options
  • Select an option

  • Save kazimmsyed/e3a852dfa53e96aed61656659545678c to your computer and use it in GitHub Desktop.

Select an option

Save kazimmsyed/e3a852dfa53e96aed61656659545678c to your computer and use it in GitHub Desktop.
How to set bindkeys aka shortcuts to bigger text of code and setting the prompt and mysql. And how the zsh enviorment variables and other are loaded into the system and for user personal use.
% cat ~/.zlogin lily Patronus Fri 6
#setting mysql
path[8]=/usr/local/mysql/bin;
#Setting shell prompt
PROMPT="%{$fg[yellow]%}%n@%m%{$reset_color%} %~"$'\n'"%# "
#setting bindkey for mysql
bindkey -s '^' "mysql -u root -p"
@kazimmsyed

kazimmsyed commented Jun 30, 2026 •

Copy link
Copy Markdown
Author

% cat ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
#setting mysql
typeset -U path
`

path=( /usr/local/mysql/bin #Add your own PATH entries here #"$HOME/some/tool/bin" $path )
#Load personal secrets
[[ -f ~/.secrets ]] && source ~/.secrets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment