From bf9791861b26217217ca07b523a98f466d094c2e Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Wed, 22 Feb 2023 21:26:52 +0100 Subject: short aliases Produce ordered list of your most frequently used commands: sed 's/ .*$//' $HISTFILE | sort | uniq -c | sort -n --- .config/aliases | 58 +++++++++++++++++++++++++-------------------------------- 1 file changed, 25 insertions(+), 33 deletions(-) (limited to '.config/aliases') diff --git a/.config/aliases b/.config/aliases index ddf33a7..b52d763 100644 --- a/.config/aliases +++ b/.config/aliases @@ -3,61 +3,53 @@ alias ..="cd .." alias ...="cd ../../" -alias reload="source $HOME/.bash_profile" -alias rld="reload" - -alias vim="nvim" alias sudo='doas' alias sudoedit='doasedit' -alias q='exit' -alias c='clear' +alias e="nvim" alias t='todo.sh' -alias nf='pfetch' +alias q='exit' +alias rr="source $HOME/.bash_profile" alias pw='acpi' alias nw='newsboat -q' +alias mx="pulsemixer" +alias up='uptime -p' +alias wl="wc -l" +alias pk="checkupdates" +alias wt="curl wttr.in/$(cat $HOME/.config/forecast/location)" +alias grep="grep --color" alias ls='exa' alias lh="exa -1dI '.|..' .*" alias lt='exa -T' alias l='exa -la' +alias g='git' alias gs='git status' alias ga='git add' alias gu='git add -u' alias df='git diff' -alias lg='git log --oneline --decorate --all --graph' - -alias config="git --git-dir=$HOME/.config/dots --work-tree=$HOME" -alias cs='config status' -alias ca='config add' -alias cu='config add -u' -alias cdf='config diff' -alias clg='config log --oneline --decorate --all --graph' - -alias shrc="nvim $HOME/.bashrc" -alias vars="nvim $HOME/.bash_profile" -alias wmrc="nvim $XDG_CONFIG_HOME/i3/config" -alias vimrc="cd $XDG_CONFIG_HOME/nvim; nvim" -alias initrc="nvim $XDG_CONFIG_HOME/X11/xinitrc" -alias barconf="nvim $XDG_CONFIG_HOME/polybar/config.ini" -alias aliases="nvim $XDG_CONFIG_HOME/aliases" - -alias mixer="pulsemixer" -alias weather="curl wttr.in/$(cat $HOME/.config/forecast/location)" +alias gl='git log --oneline --decorate --all --graph' + +alias c="git --git-dir=$HOME/.config/dots --work-tree=$HOME" +alias cs='c status' +alias ca='c add' +alias cu='c add -u' +alias cdf='c diff' +alias cl='c log --oneline --decorate --all --graph' + +function fzf () { + command fzf --color=$(<$XDG_CONFIG_HOME/scheme/fzf-color) "$@"; +}; +export -f fzf _completion_loader git _completion_loader exa _completion_loader todo.sh _completion_loader sudo -complete -o bashdefault -o default -o nospace -F __git_wrap__git_main config -complete -o bashdefault -o default -F _fzf_path_completion vim +complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g c +complete -o bashdefault -o default -F _fzf_path_completion e complete -o bashdefault -o filenames -F _exa ls complete -F _todo t complete -F _sudo doas - -function fzf () { - command fzf --color=$(<$XDG_CONFIG_HOME/scheme/fzf-color) "$@"; -}; -export -f fzf -- cgit v1.2.3-70-g09d2