From b1d8102ac1a86e473c2f7826ef3c3c0a5b741410 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Tue, 5 Oct 2021 18:16:11 +1100 Subject: First commit from Arch machine --- .config/fish/config.fish | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .config/fish/config.fish (limited to '.config/fish/config.fish') diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..4b9b740 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,25 @@ +# if status is-interactive + # Commands to run in interactive sessions can go here +# end + +# Disable fish greeting +set fish_greeting + + +# Aliases +alias ..='cd ..' +alias ...='cd ../..' + +alias yt="youtube-dl -f bestvideo+bestaudio " +alias yt-audio="youtube-dl --extract-audio --audio-format best " +alias ls="exa" +alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME' + +function sudo --description "Replacement for Bash 'sudo !!' command to run last command using sudo." + if test "$argv" = !! + eval command sudo $history[1] +else + command sudo $argv + end +end + -- cgit v1.2.3