diff options
Diffstat (limited to '.config/shell')
| -rw-r--r-- | .config/shell/alias | 9 | ||||
| -rw-r--r-- | .config/shell/functions | 16 | ||||
| -rw-r--r-- | .config/shell/vars | 13 |
3 files changed, 23 insertions, 15 deletions
diff --git a/.config/shell/alias b/.config/shell/alias index 29a7333..627e915 100644 --- a/.config/shell/alias +++ b/.config/shell/alias @@ -1,6 +1,9 @@ -alias gvc="ssh git@git.venomade.com" alias rgf='rg --files | rg' -alias ls='ls --color=auto' +alias ls='eza --icons=auto' alias md='mkdir' alias ec='emacsclient -nw' -alias cat='bat -p' +alias cat='bat -pp' +alias man='batman' +alias diff='batdiff' +alias fzf="fzf --preview 'bat --style=numbers --color=always {}'" +alias tlbx="toolbox enter" diff --git a/.config/shell/functions b/.config/shell/functions new file mode 100644 index 0000000..a300316 --- /dev/null +++ b/.config/shell/functions @@ -0,0 +1,16 @@ +gvc() { + if [[ $1 == "clone" ]]; then + shift + git clone git@git.venomade.com:"$@" + else + ssh git@git.venomade.com "$@" + fi +} + +function y() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + command yazi "$@" --cwd-file="$tmp" + IFS= read -r -d '' cwd < "$tmp" + [ "$cwd" != "$PWD" ] && [ -d "$cwd" ] && builtin cd -- "$cwd" + rm -f -- "$tmp" +} diff --git a/.config/shell/vars b/.config/shell/vars index a68dea2..2f9c223 100644 --- a/.config/shell/vars +++ b/.config/shell/vars @@ -1,12 +1 @@ -export GOPATH="$HOME/.go" - -export PATH="$PATH:$GOPATH/bin" -export PATH="$PATH:$HOME/.local/bin" -export PATH="$PATH:$HOME/.config/emacs/bin" - -export EDITOR=emacs - -# export LDFLAGS="-L/opt/homebrew/opt/llvm/lib" -# export CPPFLAGS="-I/opt/homebrew/opt/llvm/include" - -# export CMAKE_PREFIX_PATH="/opt/homebrew/opt/llvm" +export EDITOR=nvim |
