Skip to content

Instantly share code, notes, and snippets.

@niklaskeerl
Created May 17, 2021 08:36
Show Gist options
  • Save niklaskeerl/92f718f2257ebdcd23b14f19a7745c3a to your computer and use it in GitHub Desktop.
Save niklaskeerl/92f718f2257ebdcd23b14f19a7745c3a to your computer and use it in GitHub Desktop.
.bashrc without fish as interactive shell
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
#Setting fish as interactive shell only
#if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" ]]
#then
# exec fish
#fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment