2021-11-28 07:15:06 -05:00
|
|
|
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
|
2021-08-22 15:23:16 -04:00
|
|
|
export EDITOR="/usr/bin/nvim"
|
|
|
|
|
2021-11-27 08:28:43 -05:00
|
|
|
# vim
|
2021-08-22 15:23:16 -04:00
|
|
|
alias vim="nvim"
|
2020-09-08 21:03:57 -04:00
|
|
|
|
2021-11-27 08:28:43 -05:00
|
|
|
# ls
|
2020-09-08 15:25:32 -04:00
|
|
|
alias ls="ls --color=auto"
|
|
|
|
|
|
|
|
alias ..="cd .."
|
|
|
|
alias ...="cd ../.."
|
|
|
|
alias ....="cd ../../.."
|
|
|
|
alias .....="cd ../../../.."
|
2021-11-27 08:28:43 -05:00
|
|
|
alias ......="cd ../../../../.."
|
|
|
|
alias .......="cd ../../../../../.."
|
2020-09-08 15:25:32 -04:00
|
|
|
|
|
|
|
# improved reset and clear
|
|
|
|
alias reset="tput reset"
|
|
|
|
alias clear="tput reset"
|
|
|
|
|
|
|
|
# better du
|
2021-11-27 08:28:43 -05:00
|
|
|
alias du="du -hd 1"
|
2021-08-05 16:37:38 -04:00
|
|
|
|
2021-11-27 08:28:43 -05:00
|
|
|
# better feh
|
2021-01-08 12:34:14 -05:00
|
|
|
alias feh="feh -."
|
2021-08-20 13:41:01 -04:00
|
|
|
|
2021-11-27 08:28:43 -05:00
|
|
|
# vi keybindings
|
2021-08-20 13:41:01 -04:00
|
|
|
alias info="info --vi-keys"
|
2021-11-27 08:28:43 -05:00
|
|
|
|
|
|
|
# grepa
|
2021-12-14 11:53:50 -05:00
|
|
|
alias grepa="grep -I -n --color=always -r --exclude-dir=venv"
|
2021-11-27 08:28:43 -05:00
|
|
|
|
|
|
|
# less
|
|
|
|
alias less="less -R"
|
|
|
|
|
|
|
|
# find
|
|
|
|
alias find="find -name"
|
|
|
|
|
|
|
|
# sl
|
|
|
|
alias sl="ls"
|
|
|
|
|
2021-11-28 07:15:06 -05:00
|
|
|
#la
|
|
|
|
alias la="ls -a"
|
|
|
|
|
2021-12-14 11:53:50 -05:00
|
|
|
search() {
|
2021-12-15 15:52:41 -05:00
|
|
|
grepa "$@" .
|
2021-12-14 11:53:50 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
goto() {
|
2021-12-15 15:52:41 -05:00
|
|
|
open="$(search "$@" | fzf --ansi -1)"
|
2021-12-14 11:53:50 -05:00
|
|
|
if [ ! -z "$open" ]; then
|
|
|
|
file="$(echo "$open" | cut -d: -f1 -)"
|
|
|
|
line="$(echo "$open" | cut -d: -f2 -)"
|
|
|
|
|
|
|
|
vim "$file" -c "normal! $line"gg
|
|
|
|
fi
|
2021-11-27 08:28:43 -05:00
|
|
|
}
|