switch to rose pine to cover both light and dark themes
This commit is contained in:
@@ -11,7 +11,10 @@ alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
|
||||
alias d='dirs -v'
|
||||
# shfmt needs to ignore this because it is a zsh specific syntax
|
||||
# shfmt:ignore:start
|
||||
for index ({1..9}) alias "c$index"="cd +${index}"; unset index
|
||||
# shfmt:ignore:end
|
||||
|
||||
_get_aws_config_path() {
|
||||
local config_path="${AWS_CONFIG_FILE:-$HOME/.aws/config}"
|
||||
@@ -102,11 +105,46 @@ alias tgi="tg grunt init"
|
||||
alias tgp="tg grunt plan -lock=false"
|
||||
alias tga="tg grunt apply"
|
||||
alias tgu="tg grunt get -update"
|
||||
alias tgg="tg grunt graph-dependencies"
|
||||
|
||||
alias idot='dot -Tsvg -Goverlap=scale -Grankdir=RL -Gbgcolor="#282a36" -Ncolor="#f8f8f2" -Ecolor="#f8f8f2" -Nfontcolor="#f8f8f2" -Gfontname="PragmataPro Mono Liga Regular" -Gfontsize=13 -Nfontname="PragmataPro" -Nfontsize=13 -Nshape=box -Earrowhead=normal'
|
||||
|
||||
alias curltime="curl -w \"@$HOME/.curl-format.txt\" -o /dev/null -s "
|
||||
|
||||
alias vi=nvim
|
||||
alias vim=nvim
|
||||
|
||||
git_root() {
|
||||
# Check if we're in a git repository
|
||||
if ! git rev-parse --is-inside-work-tree &>/dev/null; then
|
||||
echo "Error: Not in a git repository" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Get the root of the git repository
|
||||
local git_root
|
||||
git_root=$(git rev-parse --show-toplevel)
|
||||
|
||||
if [ -n "$git_root" ]; then
|
||||
echo "Changing directory to git root: $git_root"
|
||||
cd "$git_root"
|
||||
return 0
|
||||
else
|
||||
echo "Error: Could not determine git root directory" >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
alias groot="git_root"
|
||||
|
||||
git_push() {
|
||||
# Check if we're in a git repository
|
||||
if ! git rev-parse --is-inside-work-tree &>/dev/null; then
|
||||
echo "Error: Not in a git repository" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
local branch
|
||||
branch=$(git branch --show-current)
|
||||
|
||||
git push origin "$branch" $@
|
||||
}
|
||||
|
||||
alias gpush="git_push"
|
||||
|
||||
Reference in New Issue
Block a user