Various tweaks
This commit is contained in:
parent
24ac06f925
commit
311d6a678b
@ -10,11 +10,14 @@ end
|
|||||||
|
|
||||||
set -x LANG sv_SE.UTF-8
|
set -x LANG sv_SE.UTF-8
|
||||||
set -x LC_ALL sv_SE.UTF-8
|
set -x LC_ALL sv_SE.UTF-8
|
||||||
set -x EDITOR nvim
|
|
||||||
|
|
||||||
|
set -x EDITOR nvim
|
||||||
alias v nvim
|
alias v nvim
|
||||||
|
|
||||||
if type -q pyenv
|
if type -q pyenv
|
||||||
pyenv init --path | source
|
pyenv init --path | source
|
||||||
end
|
end
|
||||||
# pyenv virtualenv-init - | source
|
# pyenv virtualenv-init - | source
|
||||||
|
|
||||||
|
alias dc="docker-compose"
|
||||||
|
alias drh="docker run -it --rm -v (pwd):/usr/(pwd) -w /usr/(pwd)"
|
||||||
|
20
install.sh
20
install.sh
@ -21,19 +21,29 @@ function setup_git() {
|
|||||||
excludesfile = ${HOME}/dotfiles/git/gitignore_global
|
excludesfile = ${HOME}/dotfiles/git/gitignore_global
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
setup_ssh
|
||||||
cat << EOF >> ~/.ssh/config
|
cat << EOF >> ~/.ssh/config
|
||||||
|
Host *
|
||||||
|
AddKeysToAgent yes
|
||||||
|
IdentityFile ~/.ssh/thomas_rsa
|
||||||
|
VisualHostKey yes
|
||||||
Host github.com
|
Host github.com
|
||||||
User git
|
User git
|
||||||
Host gitea
|
Host gitea
|
||||||
HostName git.torpet.thomasloven.com
|
HostName git.thomasloven.com
|
||||||
User git
|
User git
|
||||||
EOF
|
EOF
|
||||||
chmod 644 ~/.ssh/config
|
|
||||||
}
|
}
|
||||||
|
|
||||||
USER=`whoami`
|
USER=`whoami`
|
||||||
|
|
||||||
|
if [[ ${REMOTE_CONTAINERS} || ${DEVCONTAINER} ]]; then
|
||||||
|
|
||||||
|
echo "INSTALLING IN DEVCONTAINER"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
install_dependencies
|
install_dependencies
|
||||||
|
|
||||||
sudo -n chsh $USER -s $(which fish)
|
sudo -n chsh $USER -s $(which fish)
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
set -e
|
set -e
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
docker build . -t dotfiles -f test/Dockerfile --force-rm
|
docker build . -t dotfiles -f test/Dockerfile.devcontainer --force-rm
|
||||||
|
|
||||||
docker run --rm -it -v $(pwd):/workspaces/test dotfiles zsh
|
docker run --rm -it -v $(pwd):/workspaces/test dotfiles zsh
|
||||||
|
|
||||||
docker rmi dotfiles
|
docker rmi dotfiles
|
||||||
|
Loading…
x
Reference in New Issue
Block a user