Krolyxon
Commit dd7f80e

Branches

Refs →

dotfiles-x11.configshellaliasrc

33 lines · 966 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 lf="lfub" \
16 nb="newsboat" \
17 hst='history 1 -1 | cut -c 8- | sort | uniq | fzf | tr -d '\n' | xclip -sel c'
18
19# Verbosity and settings that you pretty much just always are going to want.
20alias \
21 cp="cp -iv" \
22 mv="mv -iv" \
23 rm="rm -vI" \
24
25# Colorize commands when possible.
26alias \
27 grep="grep --color=auto" \
28 diff="diff --color=auto" \
29 ip="ip -color=auto"
30
31ec() {find ~/.config -type f | fzf | xargs -r $EDITOR ;}
32es() {find ~/.local/bin -type f | fzf | xargs -r $EDITOR ;}
33ef() {fzf | xargs -r -I % $EDITOR % ;}