Changes in: zsh,
This commit is contained in:
parent
50cc31d4e1
commit
a4bb2c7ab2
1 changed files with 13 additions and 0 deletions
13
zsh/.zshrc
13
zsh/.zshrc
|
@ -105,6 +105,19 @@ alias ....='cd ../..'
|
|||
alias ..='cd ..'
|
||||
alias ~='cd ~'
|
||||
|
||||
cpcf() {
|
||||
local file
|
||||
|
||||
file=$(fzf --query="$1" --preview 'bat --color=always {}' --preview-window 'right:60%' --bind 'ctrl-d:preview-page-down,ctrl-u:preview-page-up')
|
||||
|
||||
if [ -n "$file" ]; then
|
||||
cat "$file" | wl-copy
|
||||
echo "Copied: $file"
|
||||
else
|
||||
echo "No file selected."
|
||||
fi
|
||||
}
|
||||
|
||||
gh_open() {
|
||||
xdg-open "https://github.com/ad1822/$1"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue