Shell scripts for day to day use...

docbroke

Banned
Joined
Feb 21, 2019
Messages
351
Age
38
Location
India
I like Z for Jump list (quickly jump to directories I frequent):
its a bit heavyweight for the Pandora, so there I just use an alias (or browse with tunar and drag and drop the directory to bash).
If you use zshell, instead use this
If you are on Windows, use this
I like V too.
I also had used same authors epub reader, but later moved to epr which also support images.
 

ClockworkCoder

Chaotic Neutral
Joined
Jan 21, 2016
Messages
1,380
Location
Menzoberranzan
It's not really a script, but I've just recently moved from using a "bare" git repository to manage my dotfiles, to using GNU Stow. The benefit is that my dotfiles are now organised in folders by application name, and it's easier to find / edit or add to them.


Steps, in short (example using zsh)

Bash:
mkdir -p ~/dotfiles/zsh
mv ~/.zshrc ~/dotfiles/zsh
cd ~/dotfiles && stow zsh
The final step creates a symlink from ~/dotfiles/zsh/.zshrc to ~/.zshrc
Post automatically merged:

Also, if I need to quickly skip branches, I often use a temp "work in progress" commit to avoid stashing issues:

Bash:
git-wip-resume () { 
        is_wip=`git log -1 --oneline | grep -P "\bwip$" -o` 
        if [ "$is_wip" = "wip" ] 
        then  
                echo "Reverting to previous work in progress"   
                git reset --soft HEAD~1 
        fi  
}

git-wip () {
        git commit -am "wip"
}
 

docbroke

Banned
Joined
Feb 21, 2019
Messages
351
Age
38
Location
India
I didn't knew about stow, but I just organized my dotfiles using it. This will be useful when I will migrate my dotfiles to pyra. Hopefully soon :)
 
Last edited:

docbroke

Banned
Joined
Feb 21, 2019
Messages
351
Age
38
Location
India
Another script I like and use routinely for playing videos on kodi from my laptop ( sending youtube links, or playing local videos from laptop to kodi running in pi connected to tv)
send_to_kodi
 
  • Like
Reactions: rSl
Top