-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7979303
commit 2ce2aea
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function killsh --argument 1 | ||
lsof -ti:"$1" | xargs kill -9 | ||
end | ||
|
||
function fwdpg --argument 1 2 | ||
ssh -N -f -L "$2":localhost:"$2" ubuntu@os-playground"$1" | ||
end | ||
|
||
function pg --argument 1 | ||
ssh os-playground"$1" | ||
end | ||
|
||
function fwdhulk --argument 1 | ||
ssh -N -f -L "$1":localhost:"$1" hulk | ||
end | ||
|
||
alias hulk="ssh hulk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if status is-interactive | ||
# Commands to run in interactive sessions can go here | ||
end | ||
|
||
switch (uname) | ||
case Darwin | ||
eval "$(/opt/homebrew/bin/brew shellenv)" | ||
end | ||
|
||
starship init fish | source | ||
|
||
fish_add_path $HOME/bin | ||
fish_add_path $HOME/.local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
usage() { | ||
echo -n -e "The user-friendly command line shell" | ||
|
||
# shellcheck disable=1004,2016 | ||
echo ' | ||
__ _ _ | ||
/ _(_)___| |__ | ||
| |_| / __| |_ \ | ||
| _| \__ \ | | | | ||
|_| |_|___/_| |_| | ||
' | ||
} | ||
|
||
main_pacman() { | ||
require_pacman fish | ||
} | ||
|
||
main_brew() { | ||
require_brew fish | ||
} | ||
|
||
main() { | ||
if [ ! -f ~/.config/fish/conf.d/omf.fish ]; then | ||
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish | ||
fi | ||
|
||
grep "fish" /etc/shells || which fish | sudo tee -a /etc/shells | ||
|
||
configfile "fish" "config.fish" | ||
} | ||
|
||
main_elahe() { | ||
configfile "fish/conf.d" "smapp.fish" | ||
} |