diff options
| author | venomade <venomade@venomade.com> | 2026-02-11 11:42:58 +0000 |
|---|---|---|
| committer | venomade <venomade@venomade.com> | 2026-02-11 11:42:58 +0000 |
| commit | 0bd150185551b6d8835d022c15a5f6e832d51113 (patch) | |
| tree | 10bf3f3443df49a44eb47b328b73b7e76b0a4924 /.config/shell | |
| parent | 8d688d1107c46b6dfdcaf02fa5c9c4c8a4640e65 (diff) | |
Asahi
Soft reset of dotfiles specific to Asahi, Sway and Neovim.
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 |
