-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Bash-it/master
Update from upstream
- Loading branch information
Showing
24 changed files
with
326 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
cite 'about-alias' | ||
about-alias 'pbcopy and pbpaste shortcuts to linux' | ||
|
||
case $OSTYPE in | ||
linux*) | ||
XCLIP=$(command -v xclip) | ||
[[ $XCLIP ]] && alias pbcopy="$XCLIP -selection clipboard" && alias pbpaste="$XCLIP -selection clipboard -o" | ||
;; | ||
esac | ||
|
||
# to use it just install xclip on your distribution and it would work like: | ||
# $ echo "hello" | pbcopy | ||
# $ pbpaste | ||
# hello | ||
|
||
# very useful for things like: | ||
# cat ~/.ssh/id_rsa.pub | pbcopy | ||
# have fun! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://github.com/nvbn/thefuck | ||
alias fuck='eval $(thefuck $(fc -ln -1))' | ||
alias please='fuck' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
# Bash completion support for the 'dirs' plugin (commands G, R). | ||
|
||
_dirs-complete() { | ||
local CURRENT_PROMPT="${COMP_WORDS[COMP_CWORD]}" | ||
|
||
# parse all defined shortcuts from ~/.dirs | ||
if [ -r "$HOME/.dirs" ]; then | ||
COMPREPLY=($(compgen -W "$(grep -v '^#' ~/.dirs | sed -e 's/\(.*\)=.*/\1/')" -- ${CURRENT_PROMPT}) ) | ||
fi | ||
|
||
return 0 | ||
} | ||
|
||
complete -o default -o nospace -F _dirs-complete G R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.