Krolyxon
Commit fd20f3a

Branches

Refs →

dotfiles-x11.configshellaliasrc

31 lines · 865 B · Bourne Again Shell (bash)

1#!/bin/sh
2
3# Use neovim for vim if present
4[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
5
6alias \
7 zconf='nvim ~/.config/zsh/.zshrc' \
8 ls='exa -a --group-directories-first --icons' \
9 lsa='exa -la --group-directories-first --icons' \
10 ytdl='yt-dlp' \
11 ytdlv='yt-dlp -f "(mp4)"' \
12 ytdlm='yt-dlp -f "(mp3)"' \
13 cl='clear' \
14 dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' \
15 fm='ranger' \
16
17# Verbosity and settings that you pretty much just always are going to want.
18alias \
19 cp="cp -iv" \
20 mv="mv -iv" \
21 rm="rm -vI" \
22
23# Colorize commands when possible.
24alias \
25 grep="grep --color=auto" \
26 diff="diff --color=auto" \
27 ip="ip -color=auto"
28
29ec() {find ~/.config -type f | fzf | xargs -r $EDITOR ;}
30es() {find ~/.local/bin -type f | fzf | xargs -r $EDITOR ;}
31ef() {fzf | xargs -r -I % $EDITOR % ;}