chore(shell,gitconfig): remove unused aliases

This commit is contained in:
Marco Thomas
2024-01-03 00:34:47 +01:00
parent b10ed06ff2
commit a79ec92732
2 changed files with 22 additions and 53 deletions

View File

@@ -14,7 +14,6 @@
co = checkout co = checkout
cp = cherry-pick cp = cherry-pick
d = diff d = diff
dt = difftool --tool=vimdiff --no-prompt
lg = log --oneline --decorate --graph lg = log --oneline --decorate --graph
lgp = lg -p lgp = lg -p
pl = pull --rebase pl = pull --rebase
@@ -26,8 +25,5 @@
st = status st = status
[blame] [blame]
date = relative date = relative
coloring = highlightRecent
[color "blame"]
highlightRecent = 248, 23 month ago, 247, 21 month ago, 246, 19 month ago, 245, 17 month ago, 244, 15 month ago, 243, 13 month ago, 242, 11 month ago, 241, 9 month ago, 240, 8 month ago, 239, 7 month ago, 238, 6 month ago, 237, 5 month ago, 236, 4 month ago, 235, 3 month ago, 234, 2 month ago, 233, 1 month ago, 232, 1 week ago, 112
[grep] [grep]
lineNumber = true lineNumber = true

View File

@@ -1,68 +1,41 @@
# fzf ### fzf(1)
export FZF_DEFAULT_COMMAND='find .' export FZF_DEFAULT_OPTS='--layout=reverse'
export FZF_DEFAULT_OPTS=' # use vim fzf if no global fzf is found
--layout=reverse [[ -d ~/.vim/plugged/fzf ]] && [[ -x $(which fzf 2> /dev/null) ]] || export PATH=$PATH:$HOME/.vim/plugged/fzf/bin
--color=fg:#5c6a72,bg:#FDF6E3,hl:#8da101
--color=fg+:#5c6a72,bg+:#eee8d5,hl+:#8da101
--color=info:#5c6a72,prompt:#5c6a72,pointer:#5c6a72
--color=marker:#5c6a72,spinner:#5c6a72,header:#5c6a72'
if [[ -d ~/.vim/plugged/fzf ]]; then # interactive git grep
[[ -x $(which fzf 2> /dev/null) ]] || export PATH=$PATH:$HOME/.vim/plugged/fzf/bin alias gg=': | fzf --ansi --disabled --query "${*:-}" \
if [[ "$SHELL" =~ "zsh$" ]]; then --bind "start:reload:git grep {q}" \
source ~/.vim/plugged/fzf/shell/completion.zsh --bind "change:reload:sleep 0.1; git grep {q} || true" \
source ~/.vim/plugged/fzf/shell/key-bindings.zsh --bind "enter:become(hx {1} +{2})" \
else --delimiter :'
source ~/.vim/plugged/fzf/shell/completion.bash
source ~/.vim/plugged/fzf/shell/key-bindings.bash
fi
fi
### System Utility
# zsh specific
if [[ "$SHELL" =~ "zsh$" ]]; then
alias -g G='| grep -i'
alias -g L='| less'
fi
# system utility
alias cdt='mkdir /tmp/$(cat /proc/sys/kernel/random/uuid); cd $_' alias cdt='mkdir /tmp/$(cat /proc/sys/kernel/random/uuid); cd $_'
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"' alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
alias fixagent='eval $(tmux show-env -s | grep "^SSH_")' alias fixagent='eval $(tmux show-env -s | grep "^SSH_")'
alias truecolor='curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash' alias truecolor='curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash'
alias whatsmyip='curl https://ipinfo.io/ip; echo' alias whatsmyip='curl https://ipinfo.io/ip; echo'
# really short command abbreviations ### Always ask first when moving files
alias c='clear'
alias cb='cargo build'
alias cp='cp -i' alias cp='cp -i'
alias cr='cargo run'
alias d='docker'
alias dc='docker compose'
alias dcr='dc down && dc up -d && dc logs -f'
alias g='git'
alias gg='git grep'
alias h='hx'
alias l='eza --icons'
alias mv='mv -i' alias mv='mv -i'
alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
alias rm='rm -i' alias rm='rm -i'
alias t='tmux a || tmux -u'
alias tw='typst watch'
# podman ### Abbreviations
alias pm="podman" alias dcr='dc down && dc up -d && dc logs -f'
alias pmc="podman compose" alias dh1='du . -h -d1'
alias pmvol='cd ~/.local/share/containers/storage/volumes' alias dhs='du . -hs'
alias diff_dir='diff -qr'
# commands with pre-selected flags alias g='git'
alias l='eza --icons'
alias nd="nix develop ." alias nd="nix develop ."
alias nssh='SSH_AUTH_SOCK= ssh' alias nssh='SSH_AUTH_SOCK= ssh'
alias dhs='du . -hs' alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
alias dh1='du . -h -d1' alias t='tmux a || tmux -u'
# nmcli ### nmcli(1)
alias con='nmcli con' alias con='nmcli con'
alias conup='nmcli con up id' alias conup='nmcli con up id'
alias condown='nmcli con down id' alias condown='nmcli con down id'