You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
364 B
24 lines
364 B
![]()
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
OS="$(uname -s)"
|
||
|
|
||
|
case $1 in
|
||
|
"fish")
|
||
|
CONFIG_DIR="$(fish -c 'echo -n $__fish_config_dir')"
|
||
|
echo "${CONFIG_DIR-"$HOME/.config/fish"}/fish.config"
|
||
|
;;
|
||
|
"zsh")
|
||
|
echo "$HOME/.zshrc"
|
||
|
;;
|
||
|
"bash")
|
||
|
if [ "$OS" = "Darwin" ]; then
|
||
|
echo "$HOME/.profile"
|
||
|
else
|
||
|
echo "$HOME/.bashrc"
|
||
|
fi
|
||
|
;;
|
||
|
*)
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|