mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Add script log for elevation scripts.
This commit is contained in:
parent
2a1127bf10
commit
6ee67769a6
25 changed files with 102 additions and 99 deletions
|
|
@ -1,33 +0,0 @@
|
|||
# vim:ft=bash
|
||||
# If wheel and antidots:
|
||||
# ln -sf $DOTFILES/tools/bash/profile ~/.config/bash/bashrc
|
||||
# If not wheel or antidots:
|
||||
# ln -sf $DOTFILES/tools/bash/bashrc ~/.bashrc
|
||||
|
||||
export DOTFILES=$HOME/.dotfiles
|
||||
# Force to choose English font name
|
||||
export LC_CTYPE=en_GB.UTF-8
|
||||
|
||||
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"
|
||||
fi
|
||||
|
||||
source "$DOTFILES"/tools/bash/bash_aliases # For compatibility
|
||||
|
||||
export IPYTHONDIR="$XDG_CONFIG_HOME"/ipython
|
||||
|
||||
if command -v fzf >/dev/null; then
|
||||
eval "$(fzf --bash)"
|
||||
fi
|
||||
|
||||
if command -v starship >/dev/null; then
|
||||
eval "$(starship init bash)"
|
||||
fi
|
||||
#
|
||||
# bind 'set show-mode-in-prompt off'
|
||||
1
home/dot_config/bash/bashrc.tmpl
Normal file
1
home/dot_config/bash/bashrc.tmpl
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{ template "bashrc" }}
|
||||
|
|
@ -11,10 +11,6 @@ if [ -n "$BASH_VERSION" ] && [ -f "$HOME/.bash_profile" ]; then
|
|||
. "$HOME/.bash_profile"
|
||||
fi
|
||||
|
||||
if [ -n "$BASH_VERSION" ] && [ -f "$XDG_CONFIG_HOME/bash/bashrc" ]; then
|
||||
. "$XDG_CONFIG_HOME/bash/bashrc"
|
||||
fi
|
||||
|
||||
pathadd() {
|
||||
# 检查是否存在且不在 PATH 中
|
||||
if [[ -d "$1" && ":$PATH:" != *":$1:"* ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue