Rework bash files

This commit is contained in:
Georgi Gardev
2024-03-05 14:57:06 +02:00
parent fe9397b8e9
commit 8701166c31
5 changed files with 40 additions and 22 deletions
+12 -12
View File
@@ -2,21 +2,21 @@ linux: link bash_git_prompt tmux vim
macos: link link_mac mac_setup bash_git_prompt brew cask tmux vim macos: link link_mac mac_setup bash_git_prompt brew cask tmux vim
link: link:
rm ~/.bash_aliases -rm ~/.aliases
rm ~/.bashrc -rm ~/.bashrc
rm ~/.bash_profile -rm ~/.bash_profile
rm ~/.git-completion.bash -rm ~/.git-completion.bash
rm ~/.gitconfig -rm ~/.gitconfig
rm ~/.tmux.conf -rm ~/.tmux.conf
ln -s ~/Git/dotfiles/bash/.bash_aliases ~ ln -s ~/Git/dotfiles/shell/.aliases ~
ln -s ~/Git/dotfiles/bash/.bashrc ~ ln -s ~/Git/dotfiles/shell/.bashrc ~
ln -s ~/Git/dotfiles/bash/.bash_profile ~ ln -s ~/Git/dotfiles/shell/.bash_profile ~
ln -s ~/Git/dotfiles/git/.git-completion.bash ~ ln -s ~/Git/dotfiles/git/.git-completion.bash ~
ln -s ~/Git/dotfiles/git/.gitconfig ~ ln -s ~/Git/dotfiles/git/.gitconfig ~
ln -s ~/Git/dotfiles/tmux/.tmux.conf ~ ln -s ~/Git/dotfiles/tmux/.tmux.conf ~
link_mac: link_mac:
rm ~/.hushlogin -rm ~/.hushlogin
ln -s ~/Git/dotfiles/macos/.hushlogin ~ ln -s ~/Git/dotfiles/macos/.hushlogin ~
mac_setup: mac_setup:
@@ -34,12 +34,12 @@ cask_personal:
tmux: tmux:
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
rm ~/.tmux/themes -rm ~/.tmux/themes
ln -s ~/Git/dotfiles/tmux/themes ~/.tmux/themes ln -s ~/Git/dotfiles/tmux/themes ~/.tmux/themes
bash_git_prompt: bash_git_prompt:
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1 git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
rm ~/.git-prompt-colors -rm ~/.git-prompt-colors
ln -s ~/Git/dotfiles/git/.git-prompt-colors.sh ~ ln -s ~/Git/dotfiles/git/.git-prompt-colors.sh ~
vim: vim:
+13 -1
View File
@@ -1,4 +1,16 @@
dotfiles dotfiles
======== ========
Some of my dotfiles Some of my dotfiles
### Home folder structure
```
.bashrc
.bash_profile
.bash_profile.local
.aliases
.aliases.local
.zsh/
.zshrc
.zshrc.local
.zprompt
+8 -7
View File
@@ -1,15 +1,23 @@
##### Platform independent ##### ##### Platform independent #####
# Files # Files
alias ...="cd ../../"
alias ....="cd ../../../"
alias df1="du -h -d 1" alias df1="du -h -d 1"
alias ls='ls -hG' alias ls='ls -hG'
alias ll='ls -alhFG' alias ll='ls -alhFG'
alias la='ls -AG' alias la='ls -AG'
alias l='ls -CFG' alias l='ls -CFG'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto' alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto' alias egrep='egrep --color=auto'
# CD-ing to some commonly used folders
alias og="cd ~/Git"
# Git Aliases # Git Aliases
alias g="git" alias g="git"
alias ga="git add" alias ga="git add"
@@ -62,12 +70,5 @@ alias be="bundle exec"
alias serve="python -m http.server 9000" alias serve="python -m http.server 9000"
alias yda="youtube-dl -x --audio-format mp3" alias yda="youtube-dl -x --audio-format mp3"
# CD-ing to some commonly used folders
alias og="cd ~/Git"
##### Mac OS Specific ##### ##### Mac OS Specific #####
alias fl="open -a ForkLift" alias fl="open -a ForkLift"
if [ -f ~/.bash_aliases.local ]; then
. ~/.bash_aliases.local
fi
+7 -2
View File
@@ -65,10 +65,15 @@ export BASH_SILENCE_DEPRECATION_WARNING=1
# Sources & exports # # Sources & exports #
###################### ######################
if [ -f ~/.bash_aliases ]; then if [ -f ~/.aliases ]; then
source ~/.bash_aliases source ~/.aliases
fi fi
if [ -f ~/.aliases.local ]; then
. ~/.aliases.local
fi
if [ -f ~/.bash_profile.local ]; then if [ -f ~/.bash_profile.local ]; then
source ~/.bash_profile.local source ~/.bash_profile.local
fi fi
View File