summary refs log tree commit diff stats
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/.bash_profile9
-rw-r--r--bash/.bashrc28
2 files changed, 37 insertions, 0 deletions
diff --git a/bash/.bash_profile b/bash/.bash_profile
new file mode 100644
index 0000000..99fd48b
--- /dev/null
+++ b/bash/.bash_profile
@@ -0,0 +1,9 @@
+#
+# ~/.bash_profile
+#
+
+[[ -f ~/.bashrc ]] && . ~/.bashrc
+
+if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
+	exec sway
+fi
diff --git a/bash/.bashrc b/bash/.bashrc
new file mode 100644
index 0000000..c1e078e
--- /dev/null
+++ b/bash/.bashrc
@@ -0,0 +1,28 @@
+# Export own script path
+export PATH=/usr/local/bin/:$HOME/.dotfiles/bin/:$PATH
+
+# Aliases
+alias ls='ls --color=auto'
+alias la='ls -lav --ignore=..'
+alias vim="nvim"
+alias lg="lazygit"
+alias pgl="pass git pull"
+alias pgs="pass git push"
+alias spt="spotify_player -d"
+alias swconf="nvim ~/.config/sway/config"
+alias sandisk="sudo mount /dev/sda1 /mnt/sandisk && cd /mnt/sandisk/"
+alias fd='cd "$(find ~/documents/ ~/downloads/ ~/.config/ ~/uni/ -type d | fzf -i)"'
+alias :q="exit"
+alias ..="cd .."
+alias v="vim"
+
+# Arrow bindings
+bind '"\e[A":history-search-backward'
+bind '"\e[B":history-search-forward'
+
+# Start programs
+eval "$(starship init bash)"
+eval "$(zoxide init --cmd='cd' bash)"
+
+# Navtag
+#source /home/chris/.scripts/navtag/commands.sh