Skip to content

Commit

Permalink
Create file for shared configurations between bash and zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
itaisteinherz committed Jan 15, 2022
1 parent 1c7eb00 commit 0f26c1f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
8 changes: 3 additions & 5 deletions dot_bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
Expand All @@ -115,3 +110,6 @@ if ! shopt -oq posix; then
. /etc/bash_completion
fi
fi

# Shared configurations
source ~/.shared.sh
8 changes: 8 additions & 0 deletions dot_shared.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Common utilities and configurations (shared between zsh and bash)

source ~/.wsl.sh

# some ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
1 change: 1 addition & 0 deletions dot_wsl.zsh → dot_wsl.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Aliases for running in WSL
alias explorer=explorer.exe
alias charm=pycharm64.exe
4 changes: 2 additions & 2 deletions dot_zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export EDITOR=/usr/bin/vim
# Set up fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

# WSL aliases
source ~/.wsl.zsh
# Shared configurations
source ~/.shared.sh

0 comments on commit 0f26c1f

Please sign in to comment.