summaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 4b9b740edb7beef248ff2d3d3f5ee1b2cd014447 (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
# 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