Skip to content

Commit

Permalink
Add fish aliases and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Oct 8, 2024
1 parent 3cf9e9d commit 8626d24
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fish/conf.d/aliases.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# alias ~='cd ~'
# alias -='cd -'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
11 changes: 11 additions & 0 deletions fish/conf.d/clipboard.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Aliases for scripts in ~/bin
# ----------------------------
alias cb="simple_clipboard"
# Copy contents of a file
alias cbf="simple_clipboard <"
# Copy SSH public key
alias cbs="echo 'Copying ~/.ssh/id_rsa.pub to clipboard...' && simple_clipboard < ~/.ssh/id_rsa.pub"
# Copy current working directory
alias cbd="pwd | simple_clipboard"
# Copy current git SHA-1
alias cbg="echo 'Copying latest commit hash to clipboard...' && git rev-parse --verify HEAD | simple_clipboard"

0 comments on commit 8626d24

Please sign in to comment.