~metalune/dotfiles

7a96e87fde2007afa0cdbf95061044fda51b9168 — metalune 4 days ago a770543 master
Add fish config
2 files changed, 58 insertions(+), 0 deletions(-)

A config/fish/alias.fish
A config/fish/config.fish
A config/fish/alias.fish => config/fish/alias.fish +36 -0
@@ 0,0 1,36 @@
# Verbosity and settings that you pretty much just always are going to want
alias cp "cp -iv"
alias mv "mv -iv"
alias rm "rm -vI"
alias mkd "mkdir -pv"
alias yt "youtube-dl --output \"%(title)s.%(ext)s\" --add-metadata -i"
alias yta "youtube-dl --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160k --output \"%(title)s.%(ext)s\""
alias lsd "doas fdisk -l"

# Colorize commands when possible
alias grep "grep --color=auto"
alias egrep "egrep --color=auto"
alias fgrep "fgrep --color=auto"
alias diff "diff --color=auto"
alias paru "paru --color=always"

# These common commands are just too long! Abbreviate them.
alias pi "doas pacman --color=always -S"
alias pr "doas pacman --color=always -R"
alias ps "pacman --color=always -Ss"
alias pu "pacman --color=always -Syu"
alias s "doas"
alias p3 "python3"
alias duck "links duckduckgo.com"

alias tbin "nc termbin.com 9999"

# There are alternatives to these default programs!
alias ls "exa -l --color=always --group-directories-first"
alias la "exa -a --color=always --group-directories-first"
alias ll "exa -al --color=always --group-directories-first"
alias l. 'exa -a | egrep "^\."'


alias v $EDITOR


A config/fish/config.fish => config/fish/config.fish +22 -0
@@ 0,0 1,22 @@
# set environment variables
set -x EDITOR nvim
set -x BROWSER qutebrowser
set -x XDG_CONFIG_HOME $HOME/.config
set -x XDG_DATA_HOME $HOME/.local/share
set -x XDG_CACHE_HOME $HOME/.cache

set -x PATH $HOME/.local/bin:$HOME/.local/bin/statusbar:$HOME/go/bin:$HOME/.cargo/bin + $PATH

# Use bat as man pager
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"

set fish_greeting "Hello World ^_^"

# set aliases
source $HOME/.config/fish/alias.fish

# other stuff
set -x LANG en_US.UTF-8
doas loadkeys ~/.keystrings