Last active
August 13, 2020 08:54
-
-
Save phase7/3246665bab403fccf190ad661ed179d6 to your computer and use it in GitHub Desktop.
This function goes to the ~/.bashrc file, and enables copying of absolute path of a folder/file to the clipboard. (requires xclip)
This file contains hidden or 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
copy_abspath() { realpath $1 | tr -d '\n' | xclip -selection clipboard; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment