set bash as default shell
This commit is contained in:
parent
5569b6fe10
commit
cbe791ead3
7 changed files with 45 additions and 19 deletions
8
Configs/bash/.bashrc
Normal file
8
Configs/bash/.bashrc
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# ╭──────────────────────────────────────────────────────────╮
|
||||||
|
# │ Auto drop into fish only on login │
|
||||||
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
|
if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]; then
|
||||||
|
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
|
||||||
|
exec fish $LOGIN_OPTION
|
||||||
|
fi
|
||||||
36
Configs/bash/.profile
Normal file
36
Configs/bash/.profile
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
update_path() {
|
||||||
|
export PATH="$PATH:$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Set manually
|
||||||
|
export REPOS="$HOME/.local/share/chezmoi"
|
||||||
|
export DOTS="$REPOS/Private/dots"
|
||||||
|
export EDITOR=nvim
|
||||||
|
export VISUAL="$EDITOR"
|
||||||
|
export QT_STYLE_OVERRIDE=kvantum
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
|
||||||
|
# Use rbw as SSH Agent
|
||||||
|
# use https://github.com/pmkap/rbw/ until https://github.com/doy/rbw/issues/197 is closed
|
||||||
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket"
|
||||||
|
|
||||||
|
update_path "$DOTS/scripts"
|
||||||
|
update_path "$HOME/.local/bin"
|
||||||
|
update_path "$HOME/bin"
|
||||||
|
update_path "/usr/local/bin"
|
||||||
|
|
||||||
|
# Dev Stuff
|
||||||
|
export NPM_PACKAGES="$HOME/.npm-packages"
|
||||||
|
export NODE_PATH="$NPM_PACKAGES/lib/node_modules${NODE_PATH:+:$NODE_PATH}"
|
||||||
|
update_path "$NPM_PACKAGES/bin"
|
||||||
|
|
||||||
|
export PNPM_HOME="$HOME/.local/share/pnpm"
|
||||||
|
update_path "$PNPM_HOME"
|
||||||
|
|
||||||
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
|
update_path "$BUN_INSTALL/bin"
|
||||||
|
|
||||||
|
source "$HOME/.rye/env"
|
||||||
|
|
||||||
|
# . "$HOME/.cargo/env"
|
||||||
|
update_path "$HOME/.cargo/bin/"
|
||||||
0
Configs/fish/.config/fish/functions/aliases.fish
Normal file
0
Configs/fish/.config/fish/functions/aliases.fish
Normal file
|
|
@ -1,4 +0,0 @@
|
||||||
function la --wraps='eza -lah --color=always --icons --git' --description 'alias la=eza -lah --color=always --icons --git'
|
|
||||||
eza -lah --color=always --icons --git $argv
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
function ld --wraps='eza -la --no-permissions --no-filesize --no-time --no-time --no-user' --description 'alias ld=eza -la --no-permissions --no-filesize --no-time --no-time --no-user'
|
|
||||||
eza -la --no-permissions --no-filesize --no-time --no-time --no-user $argv
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
function ls --wraps='eza -lh --color=always --icons --git' --description 'alias ls=eza -lh --color=always --icons --git'
|
|
||||||
eza -lh --color=always --icons --git $argv
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
@ -79,10 +79,4 @@ zinit cdreplay -q
|
||||||
# │ Init external programs │
|
# │ Init external programs │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
# eval "$(zoxide init --cmd cd zsh)"
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
|
|
||||||
# Drop into fish
|
|
||||||
if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]; then
|
|
||||||
# shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
|
|
||||||
exec fish $LOGIN_OPTION
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue