-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
31 changes: 21 additions & 10 deletions
31
home/private_dot_config/private_zsh/zsh.d/aliases.zsh.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
# Update OS dependencies | ||
# update OS dependencies | ||
alias up='sudo apt update && sudo apt -V --yes upgrade' | ||
|
||
# Remove untracked files and directories | ||
# run sudo with the current PATH environment variable | ||
alias psudo='sudo env "PATH=$PATH"' | ||
|
||
# activate a python virtual environment | ||
alias activate='source .venv/bin/activate' | ||
|
||
# remove untracked files and directories | ||
alias clean='git clean --force -X -d' | ||
|
||
{{ if lookPath "aws" -}} | ||
alias cf='aws cloudformation' | ||
{{- end }} | ||
|
||
{{ if lookPath "code" -}} | ||
alias c='code .' | ||
alias dotfiles-edit='code $XDG_DATA_HOME/chezmoi' | ||
{{- end }} | ||
|
||
{{ if lookPath "kubectl" -}} | ||
alias k='kubectl' | ||
alias kl='kubectl logs --follow' | ||
{{- end }} | ||
|
||
alias dotfiles='code $XDG_DATA_HOME/chezmoi' | ||
|
||
alias activate='source .venv/bin/activate' | ||
|
||
alias psudo='sudo env "PATH=$PATH"' | ||
|
||
{{ if lookPath "rg" -}} | ||
alias rgf='rg --files | rg' | ||
{{- end }} | ||
|
||
{{- if and (lookPath "chezmoi") (lookPath "gh") }} | ||
alias chezmoi='GITHUB_TOKEN=$(gh auth token -h github.com 2>/dev/null) chezmoi' | ||
{{ if and (lookPath "chezmoi") (lookPath "gh") -}} | ||
# launch chezmoi with a GitHub token, increasing the rate limit on GitHub APIs | ||
# https://www.chezmoi.io/reference/templates/github-functions/ | ||
alias chezmoi-gh='GITHUB_TOKEN=$(gh auth token -h github.com 2>/dev/null) chezmoi' | ||
{{- end }} |
6 changes: 3 additions & 3 deletions
6
...config/private_zsh/zsh.d/update-shell.zsh → ...dot_config/private_zsh/zsh.d/dotfiles.zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
reset-shell() | ||
dotfiles-reset() | ||
{ | ||
chezmoi apply | ||
zgenom reset | ||
exec zsh | ||
} | ||
|
||
update-shell() | ||
dotfiles-update() | ||
{ | ||
zgenom update | ||
chezmoi update | ||
zgenom update | ||
exec zsh | ||
} |