loading...

re: My Shell Aliases VIEW POST

FULL DISCUSSION
 

My Bash Equivalent aliases

alias cpsh='cat ~/.ssh/id_rsa.pub | pbcopy' # copy ssh key to clipboard (macOS)
alias ef='nvim ~/.config/fish/config.fish' # open fish config
alias eh='sudo nvim /private/etc/hosts' # edit hosts file
alias esh='nvim ~/.ssh/config' # edit SSH config
alias ev='nvim ~/.vimrc' # Edit vim config
alias serve='ruby -run -ehttpd . -p8000' # Quick static web server in current directory
alias whatsmyip='curl ifconfig.co' # Get my IP address

# Time warrior functions, these are all for time tracking with Time Warrior
alias tsi='timew summary :ids'
alias tsl='timew summary :lastweek :ids'
alias tsw='timew summary :week :ids'

My Fish functions (What fish uses instead of Alias)

# copy ssh key to clipboard (macOS)
function cpsh
    cat ~/.ssh/id_rsa.pub | pbcopy
end

# open fish config
function ef
    nvim ~/.config/fish/config.fish
end

# edit hosts file
function eh
    sudo nvim /private/etc/hosts
end

# edit SSH config
function esh
    nvim ~/.ssh/config
end

# Edit vim config
function ev
    nvim ~/.vimrc
end

# Quick static web server in current directory
function serve
    ruby -run -ehttpd . -p8000
end

# Time warrior functions, these are all for time tracking with Time Warrior
function tsi
    timew summary :ids
end

function tsl
    timew summary :lastweek :ids
end

function tsw
    timew summary :week :ids
end

# Get my IP address
function whatsmyip
    curl ifconfig.co
end
Code of Conduct Report abuse