Browse Source

add current bashrc to setup

Bananicorn 2 years ago
parent
commit
0c1d6074c7
4 changed files with 62 additions and 27 deletions
  1. 0 11
      .bashrc
  2. 60 0
      devuan_setup/.bashrc
  3. 2 0
      devuan_setup/setup_system.sh
  4. 0 16
      setup.sh

+ 0 - 11
.bashrc

@@ -1,11 +0,0 @@
-#because having fish as the user's default shell is bad, apparently
-#does it mess with things like make? possible, but I'm too lazy to find out.
-set -o vi
-
-exec fish
-
-# alias push 'sh ./push.sh'
-# alias pull 'sh ./pull.sh'
-# alias asc2mid 'sh ~/midi2asc2midi/asc2mid.out'
-# alias mid2asc 'sh ~/midi2asc2midi/mid2asc.out'
-# alias redgui 'sh wine /home/bc/red/red-063.exe'

+ 60 - 0
devuan_setup/.bashrc

@@ -0,0 +1,60 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+
+# If not running interactively, don't do anything
+case $- in
+    *i*) ;;
+      *) return;;
+esac
+
+HISTCONTROL=ignoreboth
+shopt -s histappend
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+HISTSIZE=10000
+HISTFILESIZE=20000
+
+# check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+# enable color support of ls and also add handy aliases
+if [ -x /usr/bin/dircolors ]; then
+    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+    alias ls='ls --color=auto'
+    #alias dir='dir --color=auto'
+    #alias vdir='vdir --color=auto'
+
+    #alias grep='grep --color=auto'
+    #alias fgrep='fgrep --color=auto'
+    #alias egrep='egrep --color=auto'
+fi
+
+# enable programmable completion features (you don't need to enable
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+# sources /etc/bash.bashrc).
+if ! shopt -oq posix; then
+  if [ -f /usr/share/bash-completion/bash_completion ]; then
+    . /usr/share/bash-completion/bash_completion
+  elif [ -f /etc/bash_completion ]; then
+    . /etc/bash_completion
+  fi
+fi
+#export XKB_DEFAULT_OPTIONS=compose:ralt,ctrl:nocaps
+
+export ANDROID_SDK_ROOT=/Users/bc/Library/Android/sdk
+export NVM_DIR="$HOME/.nvm"
+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
+
+alias c=clear
+alias q=exit
+alias :q=exit
+alias d="dirs -v" # print recently visited directories
+alias dup="foot & disown"
+
+bind '"\e[A": history-search-backward'
+bind '"\e[B": history-search-forward'
+
+set -o vi

+ 2 - 0
devuan_setup/setup_system.sh

@@ -18,8 +18,10 @@ sudo apt install -y sway
 sudo apt install -y swaybg
 ln -sn ~/dotfiles/devuan_setup/config/sway ~/.config/sway
 rm -rf ~/.profile
+rm -rf ~/.bashrc
 ln -sn ~/dotfiles/devuan_setup/.profile ~/.profile
 ln -sn ~/dotfiles/devuan_setup/config/user-dirs.dirs ~/.config/
+ln -sn ~/dotfiles/devuan_setup/.bashrc ~/.bashrc
 
 #install terminal emulator
 sudo apt install -y foot

+ 0 - 16
setup.sh

@@ -1,16 +0,0 @@
-#!/bin/bash
-ln -s ~/dotfiles/.bashrc ~/.bashrc
-ln -s ~/dotfiles/.zshrc ~/.zshrc
-ln -s ~/dotfiles/.fishrc ~/.fishrc
-ln -s ~/dotfiles/.bash_profile ~/.bash_profile
-ln -s ~/dotfiles/.profile ~/.profile
-ln -s ~/dotfiles/.xinitrc ~/.xinitrc
-ln -s ~/dotfiles/.gitignore ~/.gitignore
-./setup-vim.sh
-
-mkdir -p ~/.config
-mkdir -p ~/.config/i3
-ln -s ~/dotfiles/i3_config ~/.config/i3/config
-
-#if git is installed
-git config --global core.excludesfile '~/.gitignore'