Skip to content

Commit

Permalink
Fix aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
dparo committed Sep 11, 2024
1 parent 5eb35e0 commit 213082f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
6 changes: 6 additions & 0 deletions roles/fish/files/functions/la.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
status is-interactive; or exit 0

function la --wraps=eza --description 'alias la=eza'
eza --icons -lah $argv
end

7 changes: 7 additions & 0 deletions roles/fish/files/functions/ll.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
status is-interactive; or exit 0

function ll --wraps=eza --description 'alias ll=eza'
eza --icons -laFh $argv
end


2 changes: 1 addition & 1 deletion roles/fish/files/functions/ls.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
status is-interactive; or exit 0

function ls --wraps=eza --description 'alias ls=eza'
eza $argv
eza --icons $argv
end
9 changes: 0 additions & 9 deletions roles/zsh/files/.aliases
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ alias :q!=exit
alias v=nvim
alias vim=nvim
alias vi=nvim
alias ec="emacsclient --create-frame"
alias parallel='parallel --will-cite'
alias docker-clean='docker system prune --volumes -a'
alias docker-prune='docker system prune --volumes -a'
alias onlyoffice='flatpak run --branch=stable --arch=x86_64 --command=desktopeditors --file-forwarding org.onlyoffice.desktopeditors'
alias dotfiles="tmux new-session -c \"\$USER_DOTFILES_LOCATION\" -A -s dotfiles"

Expand Down Expand Up @@ -175,18 +172,12 @@ addlicense() {
command addlicense -l mit -c "$(git config --get user.name)" "$@"
}

__dparo_alias_nvr_or_nvim() {
nvr --nostart --remote-tab-wait-silent "$@" || nvim "$@"
}

mvn_run() {
local classpath="$1"
shift
mvn compile exec:java -Dexec.mainClass="$classpath" "$@"
}

alias curl_json="curl -H 'Content-Type: application/json'"

if valid_shell_command nvr && [ "$NVIM_LISTEN_ADDRESS" != "" ]; then
alias nvr=__dparo_alias_nvr_or_nvim
fi

0 comments on commit 213082f

Please sign in to comment.