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
# changing permissions | |
alias chown='chown --preserve-root' | |
alias chmod='chmod --preserve-root' | |
alias chgrp='chgrp --preserve-root' | |
alias chx='chmod --preserve-root +x' | |
# show recent | |
alias lt='ls -lhGgotr | tail -10' |
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
# Enable below tmux plugins to load | |
set -g @tpm_plugins ' \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-sensible \ | |
tmux-plugins/tmux-logging \ | |
tmux-plugins/tmux-resurrect \ | |
tmux-plugins/tmux-sidebar \ | |
roosta/tmux-fuzzback \ | |
tmux-plugins/tmux-yank \ |
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
# https://github.com/junegunn/fzf/wiki/Examples#git | |
# fco_preview - checkout git branch/tag, with a preview showing the commits between the tag/branch and HEAD | |
fco_preview() { | |
local tags branches target | |
branches=$( | |
git --no-pager branch --all \ | |
--format="%(if)%(HEAD)%(then)%(else)%(if:equals=HEAD)%(refname:strip=3)%(then)%(else)%1B[0;34;1mbranch%09%1B[m%(refname:short)%(end)%(end)" \ | |
| sed '/^$/d') || return | |
tags=$( |
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
# fco_preview - checkout git branch/tag, with a preview showing the commits between the tag/branch and HEAD | |
fco_preview() { | |
# https://github.com/junegunn/fzf/wiki/Examples | |
local tags branches target | |
branches=$( | |
git for-each-ref --color=always --count=30 --sort=-committerdate --format="%(color:green)local \t| %(color:red) %(committerdate:relative) %(color:magenta) |%(refname:short)\t\t|%(color:reset) %(authorname) %09 %(color:red) |%(subject) %(color:reset)" refs/heads/ | |
git for-each-ref --color=always --count=30 --sort=-committerdate --format="%(color:green)remote \t| %(color:red) %(committerdate:relative) %(color:magenta) |%(refname:short)\t\t|%(color:reset) %(authorname) %09 %(color:red) |%(subject) %(color:reset)" refs/remotes/ # refs/remotes/origin | |
`# git --no-pager branch --all --sort=-committerdate ` \ | |
`# --format="%(if)%(HEAD)%(then)%(else)%(if:equals=HEAD)%(refname:strip=3)%(then)%(else)%1B[0;34;1mbranch%09%1B[m%(refname:short)%(end)%(end)" ` \ |