This commit is contained in:
Nachuan Tang
2022-06-24 02:42:55 -04:00
parent 29fa6863ed
commit e54751c284
+4 -3
View File
@@ -56,8 +56,10 @@ try_symlink() {
local symlink_path="$2" local symlink_path="$2"
if [ -e "$source_path" ]; then if [ -e "$source_path" ]; then
ln -sf "$source_path" "$symlink_path" ln -sf "$source_path" "$symlink_path"
msg "Create symlink $symlink_path points to $source_path"
return 0
fi fi
ret="$?" return 1
} }
############################ SETUP FUNCTIONS ############################ SETUP FUNCTIONS
@@ -104,7 +106,6 @@ setup_vundle() {
export SHELL='/bin/sh' export SHELL='/bin/sh'
vim \ vim \
-u "$1" \
"+set nomore" \ "+set nomore" \
"+BundleInstall!" \ "+BundleInstall!" \
"+BundleClean" \ "+BundleClean" \
@@ -134,7 +135,7 @@ source ~/.vimrc" > $nvim_config
set_up_tmux() { set_up_tmux() {
if program_exists "tmux"; then if program_exists "tmux"; then
backup_file "$APP_PATH/.tmux.conf" backup_file "$APP_PATH/.tmux.conf"
try_symlink "$APP_PATH/.tmux.conf" "$HOME/.tmux.conf" try_symlink "$APP_PATH/.tmux.conf" "$HOME/.tmux.conf" && \
success "tmux config setup successed" success "tmux config setup successed"
else else
msg "tmux not installed" msg "tmux not installed"