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