Created
January 6, 2024 14:57
-
-
Save luigi/6ebe367be8384328d6cd1188d35f9449 to your computer and use it in GitHub Desktop.
My dotfiles
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
[alias] | |
c = commit -m | |
a = add | |
st = status | |
cm = commit | |
br = branch | |
co = checkout | |
df = diff | |
lg = log -p | |
pl = pull | |
mg = merge | |
rb = rebase | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
put = push origin HEAD | |
checkin = !git pull && git commit -a && git push | |
msg = commit --allow-empty -m | |
aa= !git add -u && git add . && git status | |
superadd = add --all | |
stage = add | |
unstage = reset HEAD | |
unadd = reset HEAD | |
unwip = reset --soft HEAD^ | |
new = checkout -b | |
up = !git fetch origin && git rebase origin/master | |
ir = !git rebase -i origin/master | |
fml = !"git fetch && git reset --hard origin/main" | |
branches = branch -a | |
tags = tag | |
stashes = stash list | |
remotes = remote -v | |
unmerged = diff --name-only --diff-filter=U | |
[init] | |
defaultBranch = main | |
[push] | |
default = current | |
[branch] | |
autosetuprebase=always |
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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
alias c="clear" | |
alias l="ls -alh" | |
alias ll="ls -alh" | |
alias pwdcopy="pwd | pbcopy" | |
alias gistify="pbpaste | gist -p | pbcopy" | |
alias serve="python3 -m http.server" | |
[[ -r ~/Code/znap/znap.zsh ]] || | |
git clone --depth 1 -- \ | |
https://github.com/marlonrichert/zsh-snap.git ~/Code/znap | |
source ~/Code/znap/znap.zsh | |
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment