mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chore(bootstrap): optimize shell-scripts for robustness
This commit is contained in:
parent
42b83d4696
commit
2c014e281f
13 changed files with 441 additions and 184 deletions
|
|
@ -6,28 +6,26 @@
|
|||
|
||||
export DOTFILES=$HOME/.dotfiles
|
||||
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
if [ -n "$WSL_DISTRO_NAME" ]; then
|
||||
alias clip="clip.exe"
|
||||
alias paste="pwsh.exe -NoProfile -Command 'Get-Clipboard'"
|
||||
elif [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
alias clip="wl-copy"
|
||||
alias paste="wl-paste"
|
||||
elif [ -n "$DISPLAY" ]; then
|
||||
alias clip="xclip"
|
||||
elif [ -n "$WSL_DISTRO_NAME" ]; then
|
||||
alias clip="clip.exe"
|
||||
alias paste="pwsh.exe -NoProfile -Command 'Get-Clipboard'"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
source $DOTFILES/tools/bash/bash_aliases # For compatibility
|
||||
source "$DOTFILES"/tools/bash/bash_aliases # For compatibility
|
||||
|
||||
export IPYTHONDIR="$XDG_CONFIG_HOME"/ipython
|
||||
|
||||
if command -v fzf > /dev/null; then
|
||||
if command -v fzf >/dev/null; then
|
||||
eval "$(fzf --bash)"
|
||||
fi
|
||||
|
||||
if command -v starship > /dev/null; then
|
||||
if command -v starship >/dev/null; then
|
||||
eval "$(starship init bash)"
|
||||
fi
|
||||
#
|
||||
# bind 'set show-mode-in-prompt off'
|
||||
# bind 'set show-mode-in-prompt off'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue