2022-03-14 19:21:46 +01:00
|
|
|
function conf(){
|
|
|
|
|
2022-03-28 14:12:36 +02:00
|
|
|
OLD_PWD=$PWD;
|
|
|
|
|
2022-03-14 19:21:46 +01:00
|
|
|
if [ "$1" = "u" ]; then
|
|
|
|
source ~/.zshrc
|
2022-09-19 20:32:50 +02:00
|
|
|
elif [ "$1" = "ssh" ]; then
|
|
|
|
cd $HOME/.ssh/
|
|
|
|
nvim config
|
2022-03-14 19:21:46 +01:00
|
|
|
else
|
2023-10-30 13:33:53 +01:00
|
|
|
cd ~/.config/
|
2022-03-14 19:21:46 +01:00
|
|
|
|
|
|
|
if [ "$1" != "" ]; then
|
|
|
|
cd $1
|
|
|
|
fi
|
|
|
|
|
2023-01-05 16:30:32 +01:00
|
|
|
if [[ -f ".zshrc" ]]; then
|
2023-10-30 13:33:53 +01:00
|
|
|
nvim ~/.zshrc
|
2022-03-14 19:21:46 +01:00
|
|
|
source ~/.zshrc
|
|
|
|
else
|
|
|
|
nvim .
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2022-03-28 14:12:36 +02:00
|
|
|
cd $OLD_PWD
|
|
|
|
|
2022-03-14 19:21:46 +01:00
|
|
|
}
|