-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
49 lines (35 loc) · 1.51 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export ZSH="$HOME/.oh-my-zsh"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster"
plugins=(git vscode web-search brew zsh-completions zsh-syntax-highlighting)
source "$ZSH/oh-my-zsh.sh"
alias ll='exa --long --header --git' # Preferred 'ls' implementation
alias l='ll'
alias ~="cd ~" # ~: Go Home
alias c='clear' # c: Clear terminal display
# Writes AWS CLI v2 commands straight to console i.e. without paging
export AWS_PAGER=''
export EDITOR='nano'
# Extend path with VS Code, Python, Homebrew support
export PATH="/usr/local/bin/code:$HOME/Library/Python/3.8/bin:/opt/homebrew/bin:$PATH"
complete -C "$(which aws_completer)" aws
source "$ZSH/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
# For zsh-completions
autoload -U compinit && compinit -i
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# https://www.matscloud.com/blog/2020/06/25/how-to-use-aws-cdk-with-aws-sso-profiles/
function awssso() {
aws sso login --profile $1
export AWS_PROFILE=$1
python3 ~/.aws_sso.py $1
}
function podman_start() {
# this should be run after podman machine init to create the VM
podman machine start
}
function podman_stop() {
podman machine stop
}